public void WhenConvertingToDataContractAndPassingASerializerThenTheSerializerIsInvoked()
 {
     var serializer = new MockXmlSerializer(typeof(Customer));
     var content = new StringContent(CustomerXml);
     var customer = content.ReadAsXmlSerializable<Customer>(serializer);
 }
 public void WhenConvertingToContentPassingASerializerThenTheSerializerIsInvoked()
 {
     var serializer = new MockXmlSerializer(typeof(Customer));
     var customer = new Customer { CustomerID = 1 };
     var content = customer.ToContentUsingXmlSerializer(serializer);
 }