コード例 #1
0
        public void Call_repository_when_verifying_if_user_exists()
        {
            //Arrange

            //Act
            userService.Exists(userName);

            //Assert
            userRepositoryMock.Verify(m => m.Get(userName), Times.Once);
        }