public void SetUp()
        {
            fakeBus = A.Fake <IBus>();
            A.CallTo(fakeBus)
            .Where(call => call.Method.Name == "Publish")
            .Invokes(call => publishedEvent = (Event)call.Arguments[0]);

            mappingEngine = Mapper.Engine;

            sut = new OverloadedAutomappingPublisher(fakeBus, mappingEngine);
        }
Exemplo n.º 2
0
        public void SetUp()
        {
            fakeBus = A.Fake<IBus>();
            A.CallTo(fakeBus)
                .Where(call => call.Method.Name == "Publish")
                .Invokes(call => publishedEvent = (Event)call.Arguments[0]);

            mappingEngine = Mapper.Engine;

            sut = new OverloadedAutomappingPublisher(fakeBus, mappingEngine);
        }