public override void Context() { TestObject = new { Field1 = "stuff", Field2 = 42, What = new { Field5 = "where'd 1 go?" } }; SerializationSettings = new JsonSerializerSettings(); SerializationSettings.ContractResolver = new CamelCasePropertyNamesContractResolver(); SerializationSettings.NullValueHandling = NullValueHandling.Ignore; AdditionalHeaders = new Dictionary<string, string> { {"nonce", "asdfasdf"} }; Builder = new JwsBuilder(new Hmac256Provider(Encoding.UTF8.GetBytes("key"))); }
public override void Context() { TestObject = new { Field1 = "stuff", Field2 = 42, What = new { Field5 = "where'd 1 go?" } }; SerializationSettings = new JsonSerializerSettings(); SerializationSettings.ContractResolver = new CamelCasePropertyNamesContractResolver(); SerializationSettings.NullValueHandling = NullValueHandling.Ignore; AdditionalHeaders = new Dictionary <string, string> { { "nonce", "asdfasdf" } }; Builder = new JwsBuilder(new Hmac256Provider(Encoding.UTF8.GetBytes("key"))); }
public AcmeClient(IRestClient restClient, JwsBuilder jwsBuilder, string directoryUrl) { this.restClient = restClient; this.jwsBuilder = jwsBuilder; this.directoryUrl = directoryUrl; }