コード例 #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();
        }
コード例 #2
0
 protected override void ConfigureLocalBus(IServiceBusConfigurator configurator)
 {
     configurator.UseSagaDistributorFor <FirstSaga>(EndpointFactory);
 }