Beispiel #1
0
        public void LoginForUserNotExists()
        {
            var          loginService = new LoginServiceImpl(new UserDALImpl(new InfraDAL(), _configuration));
            LoginRequest request      = new LoginRequest();

            request.EmailAddress = "*****@*****.**";
            var response = loginService.Login(request);

            Assert.IsInstanceOf(typeof(LoginResponseUserNotExists), response);
        }
Beispiel #2
0
        public void LoginOkTest()
        {
            var          loginService = new LoginServiceImpl(new UserDALImpl(new InfraDAL(), _configuration));
            LoginRequest request      = new LoginRequest();

            request.EmailAddress = "*****@*****.**";
            var response = loginService.Login(request);

            Assert.IsInstanceOf(typeof(LoginResponseOK), response);
        }