Esempio n. 1
0
        public void ProcessContractChanges()
        {
            try
            {
                List <ContractChange> changes = _contractChangesRepo.ReadNextSet();

                while (changes != null && changes.Count > 0)
                {
                    BuildContractChangeNotifications(changes);

                    changes = _contractChangesRepo.ReadNextSet();
                }
            }
            catch (Exception outer)
            {
                _log.WriteErrorLog("Error processing contract change notifications", outer);
            }
        }
            public void CallReadNextSet_ReturnsExpectedRecords()
            {
                // arrange
                IContractChangesRepository repo = MakeRepo();
                int expected = 3;

                // act
                List <ContractChange> results = repo.ReadNextSet();

                // assert
                results.Count
                .Should()
                .Be(expected);
            }