Exemple #1
0
 public void CreateHospital_ReadHospitals_GetTheCreatedHospital()
 {
     using (IDal dal = new Dal())
     {
         dal.CreateHospital(new Hospital() { Name = "Ibno Rochd", Description = "Description", Town = "Casablanca", Address = "address" });
         List<Hospital> hospitals = dal.ReadHospitals();
         Assert.IsNotNull(hospitals);
         Assert.AreEqual("Ibno Rochd", hospitals[0].Name);
         Assert.AreEqual("Description", hospitals[0].Description);
         Assert.AreEqual("Casablanca", hospitals[0].Town);
         Assert.AreEqual("address", hospitals[0].Address);
     }
 }