Example #1
0
        public void TestRoundtripCompanyRepository()
        {
            OnSetUp();
            var company = new CompanyBuilder().CreateCompany();

            _companyRepository.AddCompanies(new List <Company> {
                company
            });
            Assert.AreEqual(_companyRepository.GetCompany(company.Gcp).Name, company.Name);
        }
Example #2
0
 public new void OnSetUp()
 {
     base.OnSetUp();
     _companyRepository.AddCompanies(new List <Company> {
         new CompanyBuilder().CreateCompany()
     });
     _productRepository.AddProducts(new List <ProductDataModel>
     {
         new ProductBuilder().SetGtin(Gtin).CreateProductDatabaseModel()
     });
 }
Example #3
0
 public new void onSetUp()
 {
     base.onSetUp();
     companyRepository.AddCompanies(new List <Company>()
     {
         new CompanyBuilder().CreateCompany()
     });
     productRepository.AddProducts(new List <ProductDataModel>()
     {
         new ProductBuilder().setGtin(GTIN).CreateProductDatabaseModel()
     });
 }
        public new void OnSetUp()
        {
            base.OnSetUp();
            _employeeRepository.AddEmployees(new List <Employee> {
                Employee
            });
            _companyRepository.AddCompanies(new List <Company> {
                Company
            });
            var productDataModel = new ProductBuilder().SetGtin(Gtin).CreateProductDatabaseModel();

            _productRepository.AddProducts(new List <ProductDataModel> {
                productDataModel
            });
            _product   = new Product(_productRepository.GetProductByGtin(Gtin));
            _productId = _product.Id;
        }
Example #5
0
        public new void onSetUp()
        {
            base.onSetUp();
            employeeRepository.AddEmployees(new List <Employee>()
            {
                EMPLOYEE
            });
            companyRepository.AddCompanies(new List <Company>()
            {
                COMPANY
            });
            var productDataModel = new ProductBuilder().setGtin(GTIN).CreateProductDatabaseModel();

            productRepository.AddProducts(new List <ProductDataModel>()
            {
                productDataModel
            });
            product   = new Product(productRepository.GetProductByGtin(GTIN));
            productId = product.Id;
        }