コード例 #1
0
        public void DeleteAppartmentTest()
        {
            //Arrange

            ApartmentService ap = new ApartmentService();
            string           actual;

            //Act

            ap.DeleteAparment("20");

            IList <Apartment> testList = ap.GetAllApartment();

            //Assert

            foreach (var appApartment in testList)
            {
                if (appApartment.Id == 20)
                {
                    actual = "Denne findes";
                }
                else
                {
                    actual = "Findes ikke";
                }
                Assert.AreEqual("Findes ikke", actual);
            }
        }