示例#1
0
        public void CreateNewPassThrowsException()
        {
            DummyMockedLoginRepository _dummyMockedLoginRepository = new DummyMockedLoginRepository();
            ILogInService _logInService = new LogInService(_dummyMockedLoginRepository._logInRepository);

            Assert.Throws <LogInException>(() => _logInService.CreateNewPass("Wolf", "lucho22v.bg"));
        }
示例#2
0
        public void CreateNewPassCreates()
        {
            DummyMockedLoginRepository _dummyMockedLoginRepository = new DummyMockedLoginRepository();
            ILogInService _logInService = new LogInService(_dummyMockedLoginRepository._logInRepository);

            _logInService.CreateNewPass("Wolf", "*****@*****.**");

            Assert.AreNotEqual("1234", _dummyMockedLoginRepository._logInRepository.GetPasswordForUser("Wolf"));
        }