コード例 #1
0
        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); });
        }
コード例 #2
0
ファイル: AmericanPayroll.cs プロジェクト: petedavis/Xero-Net
 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);
 }
コード例 #3
0
        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); });
        }
コード例 #4
0
ファイル: AmericanPayroll.cs プロジェクト: yadyn/Xero-Net
 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);            
 }
コード例 #5
0
        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);
        }
コード例 #6
0
ファイル: AustralianPayroll.cs プロジェクト: sv-dev1/Xero
        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);
        }