public void TestRouteIsInUse() { Route route = _dataGenerator.CreateRouteInArea(); Variation variation = _dataGenerator.CreateVariation(route: route); IRoutesDao routesDao = new RouteDao(_graphClient); bool isInUse = routesDao.IsInUse(route); Assert.IsTrue(isInUse); }
public void TestIsInUseByRoute() { Area area = _dataGenerator.CreateArea(); Route route = _dataGenerator.CreateRouteInArea(area: area); IAreaDao areaDao = new AreaDao(_graphClient); bool isInUse = areaDao.IsInUse(area); Assert.IsTrue(isInUse); }
public void TestDeleteNormal() { Route route = _dataGenerator.CreateRouteInArea(); Variation variationWithoutLogEntries = _dataGenerator.CreateVariation(route: route); IVariationDao variationDao = new VariationDao(_graphClient); variationDao.Delete(variationWithoutLogEntries); Assert.AreEqual(0, variationDao.GetAllOn(route).Count); }