Пример #1
0
        public void WhenIcuIdIsNotPresentThenStatusIsNotFound()
        {
            ICUDataRepository iCUDataRepository = new ICUDataRepository();
            var icu = iCUDataRepository.ViewICU(172);

            Assert.AreEqual(null, icu);
        }
Пример #2
0
        public void WhenIdIsPresentThenStatusIsOk()
        {
            ICUDataRepository iCUDataRepository = new ICUDataRepository();
            var icu = iCUDataRepository.ViewICU(1);

            Assert.AreEqual(1, icu.id);
            Assert.AreEqual(10, icu.NumberOfBeds);
            Assert.AreEqual('H', icu.Layout);
        }