public void ListCompaniesSuccessfully()
 {
     var repo = new CompanyRepository();
     var companies = repo.ListCompanies();
     Assert.IsNotNull(companies);
     Assert.IsTrue(companies.Any());
 }
示例#2
0
        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());
        }