Esempio n. 1
0
        public void LoginUser_Valid_LoginShould()
        {
            //Arrange
            UserService userService = new UserService(mockRepository.Object);

            //Act
            var Result = userService.Login("LoginUser", "loginPass");

            //Assert
            mockRepository.Verify(x => x.Login(It.IsAny<string>(), It.IsAny<string>()));
        }
Esempio n. 2
0
        public void LoginUser_Invalid_IsNull()
        {
            //Arrange
            UserService userService = new UserService(mockRepository.Object);
            User Result;

            //Act
            Result = userService.Login("", "loginPass");

            //Assert
        }