Ejemplo n.º 1
0
 private static void CheckThatApiRootIsAvailable(IHalClient halRoot, string desiredMethod)
 {
     if (!halRoot.Has(desiredMethod))
     {
         throw new Exception(
                   $"Could not access the root of the API, either Authentication failed or the URL \"{Constants.GlobalXHost}{Constants.DocumentsRoute}\" could not be reached.");
     }
 }
 public void AssertThatResourceHasRelationship() =>
 _result.Has("order-edit", Curie).Should().BeTrue("Resource should have relationship");
 public static bool Has(this IHalClient client, string rel) =>
 client.Has(rel, null);