public void WhenConvertingToDataContractAndPassingASerializerThenTheSerializerIsInvoked()
 {
     var surrogate = new FakeDataContractSurrogate();
     var serializer = GetSerializerUsingSurrogate(surrogate);
     var content = new StringContent(CustomerJson);
     var customer = content.ReadAsJsonDataContract<Customer>(serializer);
 }
 public void WhenConvertingToDataContractThenInstanceIsReturned()
 {
     var content = new StringContent(CustomerJson);
     var customer = content.ReadAsJsonDataContract<Customer>();
     Assert.AreEqual(1, customer.CustomerID);
 }