public void EventController_GetUserRegistrated(
            [Frozen] IEventQueryables eventQueryables,
            EventController eventController,
            Guid userId,
            IEnumerable <EventDto> @event)
        {
            //Information
            A.CallTo(() => eventQueryables.GetUsersRegistered(userId)).Returns(@event);

            //Act
            eventController.GetUserRegistrated(userId);

            //Test
            A.CallTo(() => eventQueryables.GetUsersRegistered(userId))
            .MustHaveHappenedOnceExactly();
        }
Exemple #2
0
 public IEnumerable <EventDto> GetUserRegistrated(Guid userId)
 {
     return(_eventQueryables.GetUsersRegistered(userId));
 }