public void CreateNewPassThrowsException() { DummyMockedLoginRepository _dummyMockedLoginRepository = new DummyMockedLoginRepository(); ILogInService _logInService = new LogInService(_dummyMockedLoginRepository._logInRepository); Assert.Throws <LogInException>(() => _logInService.CreateNewPass("Wolf", "lucho22v.bg")); }
public void CreateNewPassCreates() { DummyMockedLoginRepository _dummyMockedLoginRepository = new DummyMockedLoginRepository(); ILogInService _logInService = new LogInService(_dummyMockedLoginRepository._logInRepository); _logInService.CreateNewPass("Wolf", "*****@*****.**"); Assert.AreNotEqual("1234", _dummyMockedLoginRepository._logInRepository.GetPasswordForUser("Wolf")); }