Ejemplo n.º 1
0
        public async Task Should_Pull_Assessments_When_Push_Is_Successful()
        {
            SetupEmptyPush();

            var syncResult = await _syncService.Sync(_user);

            Assert.That(syncResult.HasErrors, Is.False);
            await _pullService.Received().Pull <Assessment>(_query);
        }
        public async Task Should_Pull_Disasters()
        {
            var result = new UpdateResult <Disaster>();

            _pullService.Pull <Disaster>().Returns(Task.FromResult(result));

            var syncResult = await _service.Sync(_user);

            Assert.That(syncResult.HasErrors, Is.False);
            await _pullService.Received().Pull <Disaster>();
        }