Esempio n. 1
0
        public void should_ExtractAndStage()
        {
            var inital = _clientStageExtractor.ExtractAndStage().Result;

            Assert.True(inital == 1);

            var clients = _clientPretestStageExtractor.ExtractAndStage().Result;

            Assert.True(clients == 1);
            var stagedClients = _clientPretestStageRepository.GetAll().ToList();

            Assert.True(stagedClients.Count > 0);
            foreach (var clientStage in stagedClients)
            {
                Console.WriteLine(clientStage);
            }
        }
Esempio n. 2
0
        public void should_Sync_Users()
        {
            var count = _service.Sync().Result;

            Assert.True(count > 0);
            var clientStages = _clientStageRepository.GetAll();

            Assert.True(clientStages.Any(x => x.SyncStatus == SyncStatus.Staged));

            var clientRelStages = _clientStageRelationshipRepository.GetAll();

            Assert.True(clientRelStages.Any());

            var clients = _clientRepository.GetAll();

            Assert.True(clients.Any(x => x.SyncStatus == SyncStatus.Synced));

            var pretests = _clientPretestStageRepository.GetAll();

            Assert.True(pretests.Any());

            Console.WriteLine($"synced {count}");
        }