Exemplo n.º 1
0
        public void CorrectLogInReturnsTrue()
        {
            DummyMockedLoginRepository _dummyMockedLoginRepository = new DummyMockedLoginRepository();
            ILogInService _logInService = new LogInService(_dummyMockedLoginRepository._logInRepository);

            _logInService.SaveDataFromView("Wolf4", "1234");
            Assert.IsTrue(_logInService.CorrectLogin());
        }
Exemplo n.º 2
0
        public void CorrectLogInThrowsException()
        {
            DummyMockedLoginRepository _dummyMockedLoginRepository = new DummyMockedLoginRepository();
            ILogInService _logInService = new LogInService(_dummyMockedLoginRepository._logInRepository);

            _logInService.SaveDataFromView("Wolf4", "123");
            Assert.Throws <LogInException>(() => _logInService.CorrectLogin());
        }