Example #1
0
        public void UpdateGenderThrowsException()
        {
            MockedDummyProfileScreenSettingsRepo _mockedDummy          = new MockedDummyProfileScreenSettingsRepo();
            IProfileScreenSettingsService        _profileScreenService = new ProfileScreenSettingsService(_mockedDummy._profileScreenSettingsRepository);

            Assert.Throws <IncorrectUserDataException>(() => _profileScreenService.UpdateGender("Fasd"));
        }
Example #2
0
        public void UpdateGenderIsUpdating()
        {
            MockedDummyProfileScreenSettingsRepo _mockedDummy          = new MockedDummyProfileScreenSettingsRepo();
            IProfileScreenSettingsService        _profileScreenService = new ProfileScreenSettingsService(_mockedDummy._profileScreenSettingsRepository);

            _profileScreenService.UpdateGender("F");

            Assert.AreEqual("F", _mockedDummy._userInfo.gender);
        }