Пример #1
0
        public async Task TestGetCrossPathByIdAsyncMethod()
        {
            var service   = new CrossesService(crossRepo.Object, obituaryRepo.Object);
            var crossPath = await service.GetCrossPathByIdAsync("2");

            Assert.Equal("Path2", crossPath);
        }
Пример #2
0
        public void TestShowAllCrossesMethodReturnsPropertyValue()
        {
            var service      = new CrossesService(crossRepo.Object, obituaryRepo.Object);
            var crossesCount = service.ShowAllCrosses().Count();

            Assert.Equal(2, crossesCount);
        }