예제 #1
0
        public void FirstTestName()
        {
            IServiceBusConfigurator configurator = MockRepository.GenerateMock <IServiceBusConfigurator>();

            configurator.Expect(x => x.AddService <Distributor <InitiateSimpleSaga> >(null)).IgnoreArguments();
            configurator.Expect(x => x.AddService <Distributor <CompleteSimpleSaga> >(null)).IgnoreArguments();
            configurator.Expect(x => x.AddService <Distributor <ObservableSagaMessage> >(null)).IgnoreArguments();

            IEndpointFactory endpointFactory = MockRepository.GenerateMock <IEndpointFactory>();

            ;
            configurator.UseSagaDistributorFor <TestSaga>(endpointFactory);

            configurator.VerifyAllExpectations();
        }