public void UpdateGenderThrowsException() { MockedDummyProfileScreenSettingsRepo _mockedDummy = new MockedDummyProfileScreenSettingsRepo(); IProfileScreenSettingsService _profileScreenService = new ProfileScreenSettingsService(_mockedDummy._profileScreenSettingsRepository); Assert.Throws <IncorrectUserDataException>(() => _profileScreenService.UpdateGender("Fasd")); }
public void UpdateGenderIsUpdating() { MockedDummyProfileScreenSettingsRepo _mockedDummy = new MockedDummyProfileScreenSettingsRepo(); IProfileScreenSettingsService _profileScreenService = new ProfileScreenSettingsService(_mockedDummy._profileScreenSettingsRepository); _profileScreenService.UpdateGender("F"); Assert.AreEqual("F", _mockedDummy._userInfo.gender); }