public void GetCompanyByIdSuccessfully()
 {
     var repo = new CompanyRepository();
     var company = repo.GetCompanyById("e466dfb4-f05c-4c7f-92a3-09a0a28c7af5");
     Assert.IsNotNull(company);
     Assert.AreEqual("e466dfb4-f05c-4c7f-92a3-09a0a28c7af5",company.Id);
 }
Exemplo n.º 2
0
        public void GetCompanyByIdSuccessfully()
        {
            var content = File.ReadAllText("../../Fixtures/companies_get_by_id.json");

            var client = GetMockClient(content);
            var repo = new CompanyRepository(client.Object);
            var company = repo.GetCompanyById("e466dfb4-f05c-4c7f-92a3-09a0a28c7af5");
            client.VerifyAll();
            Assert.IsNotNull(company);
            Assert.AreEqual("e466dfb4-f05c-4c7f-92a3-09a0a28c7af5",company.Id);
        }