Beispiel #1
0
 public Drug(string name, string description, string barCode, Dosis dosis, string presentation, bool needsRefrigeration,
     Laboratory laboratory)
 {
     this.Name = name;
     this.Description = description;
     this.BarCode = barCode;
     this.Dosis = dosis;
     this.Presentation = presentation;
     this.NeedsRefrigeration = needsRefrigeration;
     this.Laboratory = laboratory;
 }
        public void Repository_Can_Add_Entity()
        {
            var labRepo = new LaboratoryRepository();
            var expectedName = "Test Lab";
            var lab = new Laboratory(expectedName);

            labRepo.Add(lab);

            var insertedLab = labRepo.GetAll().First();
            Assert.IsNotNull(insertedLab);
            Assert.AreEqual(expectedName, insertedLab.Name);
        }