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
Copy file name to clipboardExpand all lines: EasyPost.Tests/ParametersTests/ParametersTest.cs
+37Lines changed: 37 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -108,6 +108,43 @@ public void TestParametersToDictionaryWithSubDictionary()
108
108
Assert.Equal(streetB,addressData["street1"]);
109
109
}
110
110
111
+
/// <summary>
112
+
/// This test proves that you can reuse a parameter object, and that re-serializing it will take into account any changes made to its properties since the last serialization.
Copy file name to clipboardExpand all lines: EasyPost/Parameters/BaseParameters.cs
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,8 @@ public virtual Dictionary<string, object> ToDictionary()
58
58
// Bad stuff could happen if we allow end-users to convert a parameter object to a dictionary themselves and try to use it in the normal functions
59
59
// In particular, a lot of the normal functions do additional wrapping of their dictionaries, which would result in invalid JSON schemas being sent to the API
0 commit comments