public void ThatRouteWithoutAShapeCanBeDeleted()
        {
            var route = RouteServices.WithDto(RouteTestFixtures.GetRouteIvDto()).Get();

            RouteServices.Delete(route);
            route = RouteServices.Routes.SingleOrDefault(x => x.Name == route.Name);
            Assert.IsNull(route);
        }
        public void ThatRouteWithoutAbbreviationThrowsException()
        {
            var dto = RouteTestFixtures.GetRouteIvDto();

            dto.Abbreviation = String.Empty;

            AssertCreateFails(dto);
        }
        public void ThatRouteCanChangeName()
        {
            var route = RouteServices.WithDto(RouteTestFixtures.GetRouteIvDto()).Get();

            RouteServices.ChangeRouteName(route, "iv_changed");

            Context.CurrentSession().Transaction.Begin();
            route = RouteServices.Routes.SingleOrDefault(x => x.Name == "iv_changed");
            Assert.IsNotNull(route);
        }
        public void ThatRouteCanBeFound()
        {
            var route = RouteServices.WithDto(RouteTestFixtures.GetRouteIvDto()).Get();

            Assert.AreEqual(route, RouteServices.Routes.Single(x => x.Name == route.Name));
        }
        public void ThatRouteHasAnId()
        {
            var route = RouteServices.WithDto(RouteTestFixtures.GetRouteIvDto()).Get();

            Assert.IsTrue(route.Id != Guid.Empty);
        }
        public void ThatArouteCanBeGet()
        {
            var route = RouteServices.WithDto(RouteTestFixtures.GetRouteIvDto()).Get();

            Assert.IsInstanceOfType(route, typeof(Route));
        }