public void UpdatePasswordThrowsException() { MockedDummyProfileScreenSettingsRepo _mockedDummy = new MockedDummyProfileScreenSettingsRepo(); IProfileScreenSettingsService _profileScreenService = new ProfileScreenSettingsService(_mockedDummy._profileScreenSettingsRepository); Assert.Throws <IncorrectUserDataException>(() => _profileScreenService.UpdatePassword("1234", "1234", "1234")); }
public void UpdatePasswordIsUpdating() { MockedDummyProfileScreenSettingsRepo _mockedDummy = new MockedDummyProfileScreenSettingsRepo(); IProfileScreenSettingsService _profileScreenService = new ProfileScreenSettingsService(_mockedDummy._profileScreenSettingsRepository); _profileScreenService.UpdatePassword("1234", "1234Aa!sadas", "1234Aa!sadas"); Assert.AreNotSame(_mockedDummy._user.password, "123"); }