Exemplo n.º 1
0
        public void UpdateFirstNameThrowsException()
        {
            MockedDummyProfileScreenSettingsRepo _mockedDummy          = new MockedDummyProfileScreenSettingsRepo();
            IProfileScreenSettingsService        _profileScreenService = new ProfileScreenSettingsService(_mockedDummy._profileScreenSettingsRepository);

            Assert.Throws <IncorrectUserDataException>(() => _profileScreenService.UpdateFirstName("1"));
        }
Exemplo n.º 2
0
        public void UpdateFirstNameIsUpdating()
        {
            MockedDummyProfileScreenSettingsRepo _mockedDummy          = new MockedDummyProfileScreenSettingsRepo();
            IProfileScreenSettingsService        _profileScreenService = new ProfileScreenSettingsService(_mockedDummy._profileScreenSettingsRepository);

            _profileScreenService.UpdateFirstName("Fransis");


            Assert.AreEqual("Fransis", _mockedDummy._userInfo.firstName);
        }