private static HalForm CreateHalForm(string selfHref, DefaultTemplate defaultTemplate) { var template = new Template(defaultTemplate); var halForm = new HalForm(new Links(selfHref), template); return halForm; }
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)); }