private async Task SyncTeachingEventBuildings() { var buildings = _crm.GetTeachingEventBuildings(); await PopulateTeachingEventCoordinates(buildings); await SyncModels(buildings, _dbContext.TeachingEventBuildings); }
public void GetTeachingEventBuildings_ReturnsAll() { _mockService.Setup(mock => mock.CreateQuery("msevtmgt_building", _context)) .Returns(MockTeachingEventBuildings()); var result = _crm.GetTeachingEventBuildings(); result.Select(e => e.Venue).Should().BeEquivalentTo(new string[] { "Venue 1", "Venue 2" }, options => options.WithStrictOrdering()); }