You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[feat] Add ability to compare parameter set to an EasyPost object (#511)
- Add "Matches" function at base level of all parameter sets to test if a given set matches a provided EasyPostObject-based object
- Add unit tests to confirm function can be implemented and works as expected
@@ -270,11 +272,50 @@ public void TestParameterToDictionaryAccountsForNonPublicProperties()
270
272
Assert.True(dictionary.Count==4);
271
273
}
272
274
275
+
/// <summary>
276
+
/// This test proves that the .Matches() method will evaluate if a provided EasyPostObject matches the current parameter set, based on the defined match function.
// TODO: Batches get returned in reverse order from everything else (oldest first instead of newest first), so this needs to be "after_id" instead of "before_id"
/// <a href="https://www.easypost.com/docs/api#retrieve-a-list-of-addresses">Parameters</a> for <see cref="EasyPost.Services.AddressService.All(All, System.Threading.CancellationToken)"/> API calls.
/// <a href="https://www.easypost.com/docs/api#create-and-verify-addresses">Parameters</a> for <see cref="EasyPost.Services.AddressService.Create(Create, System.Threading.CancellationToken)"/> API calls.
/// <a href="https://www.easypost.com/docs/api#add-shipments-to-a-batch">Parameters</a> for <see cref="EasyPost.Services.BatchService.AddShipments(string, AddShipments, System.Threading.CancellationToken)"/> API calls.
0 commit comments