public void AddNewCompany() { CompanyModel model = new CompanyModel() { Name = "testName", Address = "testAddress", Phone = "testPhone" }; CompanyDAL companyDAL = new CompanyDAL(); companyDAL.AddNewCompany(model); CompanyModel company = new CompanyModel(); company = companyDAL.GetCompanies().Where(x => x.Name == "testName").FirstOrDefault(); Assert.That(company != null, Is.True); }
public void AddNewCompany(CompanyModel model) { CompanyDAL companyDAL = new CompanyDAL(); companyDAL.AddNewCompany(model); }
public void AddCompany(CompanyModel comp) { CompanyDAL compDal = new CompanyDAL(); compDal.AddNewCompany(comp); }