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);
        }
Exemple #2
0
        public void AddNewCompany(CompanyModel model)
        {
            CompanyDAL companyDAL = new CompanyDAL();

            companyDAL.AddNewCompany(model);
        }
Exemple #3
0
    public void AddCompany(CompanyModel comp)
    {
        CompanyDAL compDal = new CompanyDAL();

        compDal.AddNewCompany(comp);
    }