Beispiel #1
0
        public void UserController_GetById(
            [Frozen] IUserQueryables userQueryables,
            UserController userController,
            Guid userId,
            UserDto userDto)
        {
            //Information
            A.CallTo(() => userQueryables.GetById(userId)).Returns(userDto);

            //Act
            userController.GetById(userId);

            //Test
            A.CallTo(() => userQueryables.GetById(userId))
            .MustHaveHappened();
        }
Beispiel #2
0
 public UserDto GetById(Guid id)
 {
     return(_userQueryables.GetById(id));
 }