public void Login(string userName, string password)
        {
            var useCase = new UserLoginUseCase(_context);
            var result  = useCase.Login(userName, password);

            if (result.Status == UseCaseStatus.Unauthorized)
            {
                Unauthorized();
            }

            Ok();
        }
Exemple #2
0
 public void WhenUserLogsInWithUserAnd(string userName, string password)
 {
     Result = _useCase.Login(userName, password);
 }