Ejemplo n.º 1
0
        public void SetUp()
        {
            fakeBus = A.Fake <IBus>();

            publishedEvents = new List <Event>();
            A.CallTo(fakeBus)
            .Where(call => call.Method.Name == "Publish")
            .Invokes(call => publishedEvents.Add((Event)call.Arguments[0]));

            mappingEngine = Mapper.Engine;

            sut = new MappedPublisher(fakeBus, mappingEngine);
        }
Ejemplo n.º 2
0
        public void SetUp()
        {
            fakeBus = A.Fake<IBus>();

            publishedEvents = new List<Event>();
            A.CallTo(fakeBus)
                .Where(call => call.Method.Name == "Publish")
                .Invokes(call => publishedEvents.Add((Event)call.Arguments[0]));

            mappingEngine = Mapper.Engine;

            sut = new MappedPublisher(fakeBus, mappingEngine);
        }