/// <summary> /// Creates an instance of <see cref="HalEmbeddedResource"/>. /// </summary> /// <param name="embeddedResourceBuilder">An object that builds embedded resources.</param> public HalEmbeddedResource(IHalEmbeddedResourceBuilder embeddedResourceBuilder) { if (embeddedResourceBuilder == null) { throw new ArgumentNullException("embeddedResourceBuilder"); } _document = embeddedResourceBuilder.Build(); }