public Drug(DrugType drugType, string name, int quantity, DateTime expirationDate, string producer) { this.DrugType = drugType; this.Name = name; this.Quantity = quantity; this.ExpirationDate = expirationDate; this.Producer = producer; }
public Drug(List <Ingredient> ingredients, DrugType drugType, string name, int id, int quantity, DateTime expirationDate, string producer) { if (ingredients == null) { this.ingredient = new List <Ingredient>(); } else { this.ingredient = ingredients; } if (drugType == null) { this.drugType = new DrugType(); } else { this.drugType = new DrugType(drugType); } this.Name = name; this.Id = id; this.Quantity = quantity; this.ExpirationDate = expirationDate; this.Producer = producer; }
public DrugType(DrugType drugType) { this.Type = drugType.Type; this.Purpose = drugType.Purpose; }