Ejemplo n.º 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);
        }
Ejemplo n.º 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()
     });
 }
Ejemplo n.º 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()
     });
 }
Ejemplo n.º 4
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;
        }
Ejemplo n.º 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;
        }