public void UpdateMailThrowsException() { MockedDummyProfileScreenSettingsRepo _mockedDummy = new MockedDummyProfileScreenSettingsRepo(); IProfileScreenSettingsService _profileScreenService = new ProfileScreenSettingsService(_mockedDummy._profileScreenSettingsRepository); Assert.Throws <IncorrectUserDataException>(() => _profileScreenService.UpdateMail("lel@gmai:.com")); }
public void UpdateMailIsUpdating() { MockedDummyProfileScreenSettingsRepo _mockedDummy = new MockedDummyProfileScreenSettingsRepo(); IProfileScreenSettingsService _profileScreenService = new ProfileScreenSettingsService(_mockedDummy._profileScreenSettingsRepository); _profileScreenService.UpdateMail("*****@*****.**"); Assert.AreEqual("*****@*****.**", _mockedDummy._userInfo.email); }