public void Can_parse_svg_datauri() { var dataUri = Svg.GetDataUri(Svg.Icons.Male); var content = StaticContent.CreateFromDataUri(dataUri); Assert.That(content.MimeType, Is.EqualTo("image/svg+xml")); Assert.That(content.Data.FromUtf8().ToString(), Is.EqualTo(Svg.GetImage(Svg.Icons.Male))); }
public static HtmlString SvgImage(this IHtmlHelper html, string name, string fillColor) => Svg.GetImage(name, fillColor).ToHtmlString();
public static HtmlString SvgImage(this IHtmlHelper html, string name) => Svg.GetImage(name).ToHtmlString();