public void UpdateSettings_AllPropertiesValid_DoesNotThrowArgumentException() { //Arrange Mock <AccessTokenManagerBaseStub> tokenManager = new Mock <AccessTokenManagerBaseStub>(); SettingsEndpoint settingsRequest = new SettingsEndpoint(tokenManager.Object, new UsersModel()); //Act and Assert Assert.DoesNotThrow(() => { settingsRequest.UpdateSettings(ValidSettings); }); }
private void Connect() { WorkLocations = new WorkLocationsEndpoint(Client); PayStubs = new PayStubsEndpoint(Client); PaySchedules = new PaySchedulesEndpoint(Client); Employees = new EmployeesEndpoint(Client); PayRuns = new PayRunsEndpoint(Client); Settings = new SettingsEndpoint(Client); Timesheets = new TimesheetsEndpoint(Client); }
public void UpdateSettings_ShareBackgroundActivitiesNotValid_ArgumentException() { //Arrange Mock <AccessTokenManagerBaseStub> tokenManager = new Mock <AccessTokenManagerBaseStub>(); SettingsEndpoint settingsRequest = new SettingsEndpoint(tokenManager.Object, new UsersModel()); //Act and Assert ValidSettings.ShareBackgroundActivities = "Not valid value."; Assert.Throws(typeof(ArgumentException), () => { settingsRequest.UpdateSettings(ValidSettings); }); }
private void Connect() { LeaveApplications = new LeaveApplicationsEndpoint(Client); SuperFundProducts = new SuperFundProductsEndpoint(Client); SuperFunds = new SuperFundsEndpoint(Client); Payslips = new PayslipsEndpoint(Client); Employees = new EmployeesEndpoint(Client); PayRuns = new PayRunsEndpoint(Client); Timesheets = new TimesheetsEndpoint(Client); PayItems = new PayItemsEndpoint(Client); PayrollCalendars = new PayrollCalendarsEndpoint(Client); Settings = new SettingsEndpoint(Client); }