// PUBLIC METHODS /////////////////////////////////////////////////// #region Assert Methods public static void Equal(IHypermediaPath expected, IHypermediaPath actual) { if (expected == null) { Assert.Null(actual); return; } Assert.NotNull(actual); Assert.Equal(expected.PathSegments, actual.PathSegments); Assert.Equal(expected.HypermediaPathType, actual.HypermediaPathType); }
public static bool IsResourceCollectionPath(this IHypermediaPath hypermediaPath) { Contract.Requires(hypermediaPath != null); return(hypermediaPath.HypermediaPathType == HypermediaPathType.ResourceCollectionPath); }
public static bool IsToManyResourcePath(this IHypermediaPath hypermediaPath) { Contract.Requires(hypermediaPath != null); return(hypermediaPath.HypermediaPathType == HypermediaPathType.ToManyResourcePath); }
public static bool HasClrResourceType(this IHypermediaPath hypermediaPath) { Contract.Requires(hypermediaPath != null); return(hypermediaPath.HypermediaPathType != HypermediaPathType.NonResourcePath); }