public ActionResult GetRoutes()
        {
            var routes = new List <RouteDto> {
                RouteTestFixtures.GetRouteWithShape()
            };

            return(this.Direct(new { success = true, data = routes }));
        }
        public void ThatDeletingRouteWithShapeDoesNotDeleteShape()
        {
            var route = RouteServices.WithDto(RouteTestFixtures.GetRouteWithShape()).Get();

            RouteServices.Delete(route);
            var shape =
                ShapeServices.Shapes.SingleOrDefault(
                    x => x.Name == RouteTestFixtures.GetRouteWithShape().Shapes.First().Name);

            Assert.IsNotNull(shape);
        }
        public ActionResult GetRoute(JObject id)
        {
            if (CheckIfIdIsEmpty(id, "id"))
            {
                return(this.Direct(new { success = false }));
            }

            var shape = RouteTestFixtures.GetRouteWithShape();

            return(this.Direct(new { success = true, result = shape }));
        }
        public void ThatRouteCanBeAssociatedWithShape()
        {
            var route = RouteServices.WithDto(RouteTestFixtures.GetRouteWithShape()).Get();

            Assert.IsTrue(route.Shapes.Count() == 1);
        }