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

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

        compDal.AddNewCompany(comp);
    }