Exemple #1
0
        public void LoginTest1()
        {
            ILogin user = new LoginDto()
            {
                UserId   = 18,
                Email    = "*****@*****.**",
                Password = "******"
            };
            var result = sut.Login(user);

            Assert.IsTrue(result);
            MockConnection.CloseConnection();
        }
 public bool Login(ILogin user)
 {
     return(loginContext.Login(user));
 }
Exemple #3
0
 public User Login(string username, string password)
 {
     return(_context.Login(username, password));
 }