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 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); }