public void UpdateFirstNameThrowsException() { MockedDummyProfileScreenSettingsRepo _mockedDummy = new MockedDummyProfileScreenSettingsRepo(); IProfileScreenSettingsService _profileScreenService = new ProfileScreenSettingsService(_mockedDummy._profileScreenSettingsRepository); Assert.Throws <IncorrectUserDataException>(() => _profileScreenService.UpdateFirstName("1")); }
public void UpdateFirstNameIsUpdating() { MockedDummyProfileScreenSettingsRepo _mockedDummy = new MockedDummyProfileScreenSettingsRepo(); IProfileScreenSettingsService _profileScreenService = new ProfileScreenSettingsService(_mockedDummy._profileScreenSettingsRepository); _profileScreenService.UpdateFirstName("Fransis"); Assert.AreEqual("Fransis", _mockedDummy._userInfo.firstName); }