public void ChangePasswordChanges() { MockedDummyProfileScreenSettingsService _mockedDummy = new MockedDummyProfileScreenSettingsService(); IProfileScreen _profileScreen = new MockedDummyProfileScreenView(); ISettingsPresenter _profileScreenPresenter = new SettingsPresenter(_profileScreen, _mockedDummy._profileScreenSettingsService); _profileScreenPresenter.ChangePassword("1234", "12234", "1234"); Assert.AreEqual("12234", _mockedDummy._user.password); }
public void ChangeGenderChanges() { MockedDummyProfileScreenSettingsService _mockedDummy = new MockedDummyProfileScreenSettingsService(); IProfileScreen _profileScreen = new MockedDummyProfileScreenView(); ISettingsPresenter _profileScreenPresenter = new SettingsPresenter(_profileScreen, _mockedDummy._profileScreenSettingsService); _profileScreenPresenter.ChangeGender("F"); Assert.AreEqual("F", _profileScreen.Gender); }
public void ChangeGenderCatchesException() { MockedDummyProfileScreenSettingsService _mockedDummy = new MockedDummyProfileScreenSettingsService(); IProfileScreen _profileScreen = new MockedDummyProfileScreenView(); ISettingsPresenter _profileScreenPresenter = new SettingsPresenter(_profileScreen, _mockedDummy._profileScreenSettingsService); _mockedDummy.error = true; _profileScreenPresenter.ChangeGender("F"); Assert.AreNotEqual("F", _profileScreen.Gender); }
public void ChangeAgeChanges() { MockedDummyProfileScreenSettingsService _mockedDummy = new MockedDummyProfileScreenSettingsService(); IProfileScreen _profileScreen = new MockedDummyProfileScreenView(); ISettingsPresenter _profileScreenPresenter = new SettingsPresenter(_profileScreen, _mockedDummy._profileScreenSettingsService); _profileScreenPresenter.ChangeAge(2); Assert.AreEqual(2, _profileScreen.Age); }
public void ChangeEmailCatchesException() { MockedDummyProfileScreenSettingsService _mockedDummy = new MockedDummyProfileScreenSettingsService(); IProfileScreen _profileScreen = new MockedDummyProfileScreenView(); ISettingsPresenter _profileScreenPresenter = new SettingsPresenter(_profileScreen, _mockedDummy._profileScreenSettingsService); _mockedDummy.error = true; _profileScreenPresenter.ChangeEmail("*****@*****.**"); Assert.AreNotEqual("*****@*****.**", _profileScreen.Email); }
public void ChangeLastNameCatchesException() { MockedDummyProfileScreenSettingsService _mockedDummy = new MockedDummyProfileScreenSettingsService(); IProfileScreen _profileScreen = new MockedDummyProfileScreenView(); ISettingsPresenter _profileScreenPresenter = new SettingsPresenter(_profileScreen, _mockedDummy._profileScreenSettingsService); _mockedDummy.error = true; _profileScreenPresenter.ChangeLastName("MasterGigo"); Assert.AreNotEqual("MasterGigo", _profileScreen.LastName); }
public void ChangeLastNameChanges() { MockedDummyProfileScreenSettingsService _mockedDummy = new MockedDummyProfileScreenSettingsService(); IProfileScreen _profileScreen = new MockedDummyProfileScreenView(); ISettingsPresenter _profileScreenPresenter = new SettingsPresenter(_profileScreen, _mockedDummy._profileScreenSettingsService); _profileScreenPresenter.ChangeLastName("MasterGigo"); Assert.AreEqual("MasterGigo", _profileScreen.LastName); }
public void ChangeEmailChanges() { MockedDummyProfileScreenSettingsService _mockedDummy = new MockedDummyProfileScreenSettingsService(); IProfileScreen _profileScreen = new MockedDummyProfileScreenView(); ISettingsPresenter _profileScreenPresenter = new SettingsPresenter(_profileScreen, _mockedDummy._profileScreenSettingsService); _profileScreenPresenter.ChangeEmail("*****@*****.**"); Assert.AreEqual("*****@*****.**", _profileScreen.Email); }