public void ShouldReturnACollectionOfOfficesSync() { var officeJson = StubDataLoader.LoadJsonFile("Offices.json"); IOfficeService service = new OfficeService(new MoxiWorksClient(new StubContextClient(officeJson))); var response = service.GetCompanyOffices("some_moxiworks_company_id"); Assert.IsType <OfficeResults>(response.Item); Assert.True(response.Item.Offices.Count == 1); Assert.True(response.Item.Offices[0].CreatedTimestamp.HasValue); Assert.False(response.Item.Offices[0].DeactivatedTimestamp.HasValue); }