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

            Assert.Throws <IncorrectUserDataException>(() => _profileScreenService.UpdateUserName("F"));
        }
Beispiel #2
0
        public void UpdateUserNameIsUpdating()
        {
            MockedDummyProfileScreenSettingsRepo _mockedDummy          = new MockedDummyProfileScreenSettingsRepo();
            IProfileScreenSettingsService        _profileScreenService = new ProfileScreenSettingsService(_mockedDummy._profileScreenSettingsRepository);

            _profileScreenService.UpdateUserName("Fransis");

            Assert.AreEqual("Fransis", _mockedDummy._user.userName);
        }