public void TestThatDeliveryEngineMappingExceptionCanBeSerializedAndDeserialized() { var fixture = new Fixture(); fixture.Customize <IDeliveryEngineMappingExceptionInfo>(e => e.FromFactory(() => MockRepository.GenerateMock <IDeliveryEngineMappingExceptionInfo>())); DeliveryEngineExceptionTestHelper.TestThatDeliveryEngineExceptionCanBeSerializedAndDeserialized(new DeliveryEngineMappingException(fixture.CreateAnonymous <string>(), fixture.CreateAnonymous <IDeliveryEngineMappingExceptionInfo>(), fixture.CreateAnonymous <Exception>())); }
public void TestThatDeliveryEngineBusinessExceptionCanBeSerializedAndDeserialized() { var fixture = new Fixture(); DeliveryEngineExceptionTestHelper.TestThatDeliveryEngineExceptionCanBeSerializedAndDeserialized(new DeliveryEngineBusinessException(fixture.CreateAnonymous <string>(), fixture.CreateAnonymous <Exception>())); }