Example #1
0
 private static HalForm CreateHalForm(string selfHref, DefaultTemplate defaultTemplate)
 {
     var template = new Template(defaultTemplate);
      var halForm = new HalForm(new Links(selfHref), template);
      return halForm;
 }
Example #2
0
 public HalForm(Links links, Template template)
     : base(links)
 {
     // If I understand the spec correctly _templates is a collection, but only one template is allowed/necessary...
      Template = Enforce.ArgumentNotNull(template, nameof(template));
 }