public void OnApplicationExit(object sender, EventArgs e) { if (loggedUserSystemInformation != null) { try { loggedUserSystemInformation.IsLoggedIn = Constants.FALSE_STRING; SmartGridDataManagers.UserSystemInformationDataManager userSystemInfoManager = new SmartGridDataManagers.UserSystemInformationDataManager(); userSystemInfoManager.UpdateUserSystemInformationDetails(loggedUserSystemInformation); } catch (NotSupportedException) { //Do nothing. } } }
public void UpdateUserSystemInformationDetailsTest() { UserSystemInformationDataManager target = new UserSystemInformationDataManager(); // TODO: Initialize to an appropriate value UserSystemInformationDto dto = null; // TODO: Initialize to an appropriate value target.UpdateUserSystemInformationDetails(dto); Assert.Inconclusive("A method that does not return a value cannot be verified."); }