public void ListCompaniesSuccessfully() { var repo = new CompanyRepository(); var companies = repo.ListCompanies(); Assert.IsNotNull(companies); Assert.IsTrue(companies.Any()); }
public void ListCompaniesSuccessfully() { var content = File.ReadAllText("../../Fixtures/companies_list.json"); var client = GetMockClient(content); var repo = new CompanyRepository(client.Object); var companies = repo.ListCompanies(); client.VerifyAll(); Assert.IsNotNull(companies); Assert.IsTrue(companies.Any()); }