Beispiel #1
0
        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>()));
        }
Beispiel #2
0
        public void TestThatDeliveryEngineBusinessExceptionCanBeSerializedAndDeserialized()
        {
            var fixture = new Fixture();

            DeliveryEngineExceptionTestHelper.TestThatDeliveryEngineExceptionCanBeSerializedAndDeserialized(new DeliveryEngineBusinessException(fixture.CreateAnonymous <string>(), fixture.CreateAnonymous <Exception>()));
        }