Ejemplo n.º 1
0
        public void TestGetAllAccountTest()
        {
            ExigoGetCustomers customers = new ExigoGetCustomers();
            var allCustomers            = customers.GetAllAccounts();

            Assert.IsTrue(allCustomers.Count() > 1000);
        }
 public UpdateModifiedAccounts()
 {
     exigoContext      = new ExigoGetCustomers();
     updater           = new Updater();
     crmAccounts       = new List <Contact>();
     LastCrmModDate    = base.GetLastExigoModifedDate().Subtract(TimeSpan.FromDays(1));
     _accountsToUpdate = exigoContext.GetAccountsGreaterThanModfiedOn(LastCrmModDate).Where(e => !string.IsNullOrEmpty(e.CrmGuid)).ToList();
     /// uncomment line below and comment out line above to update all accounts
     //_accountsToUpdate = exigoContext.GetAccountsGreaterThanModfiedOn(new DateTime(2010,01,01)).Where(e => !string.IsNullOrEmpty(e.CrmGuid)).ToList();
 }