Inheritance: BaseProduct
Exemplo n.º 1
0
 private void mapItem(Chemical chemical, ChemicalViewModel input)
 {
     chemical.ActiveIngredient = input.Chemical.ActiveIngredient;
     chemical.ActiveIngredientPercent = input.Chemical.ActiveIngredientPercent;
     chemical.Description = input.Chemical.Description;
     chemical.EPAEstNumber = input.Chemical.EPAEstNumber;
     chemical.EPARegNumber = input.Chemical.EPARegNumber;
     chemical.Manufacturer = input.Chemical.Manufacturer;
     chemical.Name = input.Chemical.Name;
     chemical.Notes = input.Chemical.Notes;
 }
Exemplo n.º 2
0
        private void CreateChemical()
        {
            _chemical1 = new Chemical()
            {
                Name = "Lsd",
            };

            _chemical2 = new Chemical()
            {
                Name = "PCP",
            };

            _repository.Save(_chemical1);
            _repository.Save(_chemical2);
        }