Пример #1
0
        public async Task CheckPoint_Dictionary()
        {
            CheckPoint checkPoint1 = checkPointMng.GetById(1);
            CheckPoint checkPoint2 = await checkPointMng.GetByIdAsync(1);

            var checkPoints = checkPointMng.GetAll();

            Assert.IsNotNull(checkPoint1);
            Assert.IsTrue(checkPoint1.Active);
            Assert.IsNotNull(checkPoint2);
            Assert.IsTrue(checkPoint2.Name.Contains("Брест"));
            Assert.IsTrue(checkPoints.Count() != 0);
            Assert.IsTrue(checkPoints.Contains(checkPoint1));
            Assert.IsTrue(checkPoints.Contains(checkPoint2));
        }