private void ActivateProfile(object sender, RoutedEventArgs e) { if (!Profile.ActivateProfile()) { MessageBox.Show("The Profile could not be activated, see the log for more details", "Profile failed to activate!", MessageBoxButton.OK, MessageBoxImage.Exclamation); } }
public void ActivateProfileProfileIDSpecified() { Profile profile = new Profile(); profile.ActivateProfile(13); }
public void ActivateProfileInvalidProfileIDSpecified() { Profile profile = new Profile(); profile.ActivateProfile(999); }
public void ActivateProfileNoProfileIDSpecified() { Profile profile = new Profile(); profile.ActivateProfile(int.Parse(null)); }