public void EditCompanySuccessfully() { var repo = new CompanyRepository(); var editedCompany = repo.EditCompany(new Company { Id = "739dcfc5-adf0-4a00-b639-b4e05922994d", LegalName = "Test company #2", Name = "Test company #2", Country = "AUS" }); Assert.AreEqual("Test company #2", editedCompany.Name); }
public void EditCompanySuccessfully() { var content = File.ReadAllText("../../Fixtures/companies_edit.json"); var client = GetMockClient(content); var repo = new CompanyRepository(client.Object); var editedCompany = repo.EditCompany(new Company { Id = "739dcfc5-adf0-4a00-b639-b4e05922994d", LegalName = "Test company #2", Name = "Test company #2", Country = "AUS" }); client.VerifyAll(); Assert.AreEqual("Test company #2", editedCompany.Name); }