public void InvokeGetEventSignupWithTheCorrectParameters()
        {
            var message = new EventSignupByEventIdAndUserIdQuery { EventId = 1, UserId = "1" };
            var dataAccess = new Mock<IAllReadyDataAccess>();
            var sut = new EventSignupByEventIdAndUserIdQueryHandler(dataAccess.Object);
            sut.Handle(message);

            dataAccess.Verify(x => x.GetEventSignup(message.EventId, message.UserId), Times.Once);
        }
Example #2
0
        public void InvokeGetEventSignupWithTheCorrectParameters()
        {
            var message = new EventSignupByEventIdAndUserIdQuery {
                EventId = 1, UserId = "1"
            };
            var dataAccess = new Mock <IAllReadyDataAccess>();
            var sut        = new EventSignupByEventIdAndUserIdQueryHandler(dataAccess.Object);

            sut.Handle(message);

            dataAccess.Verify(x => x.GetEventSignup(message.EventId, message.UserId), Times.Once);
        }