1 instantiation of Html5DateRenderingMode
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
80 references to Html5DateRenderingMode
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (31)
InputTagHelperTest.cs (31)
1857tagHelper.ViewContext.Html5DateRenderingMode = Html5DateRenderingMode.Rfc3339;
1926tagHelper.ViewContext.Html5DateRenderingMode = Html5DateRenderingMode.Rfc3339;
1955[InlineData("Date", Html5DateRenderingMode.CurrentCulture, "{0:d}", "date")] // Format from [DataType].
1956[InlineData("Date", Html5DateRenderingMode.Rfc3339, "{0:yyyy-MM-dd}", "date")]
1957[InlineData("DateTime", Html5DateRenderingMode.CurrentCulture, null, "datetime-local")]
1958[InlineData("DateTime", Html5DateRenderingMode.Rfc3339, @"{0:yyyy-MM-ddTHH\:mm\:ss.fff}", "datetime-local")]
1959[InlineData("DateOnlyDate", Html5DateRenderingMode.CurrentCulture, "{0:d}", "date")] // Format from [DataType].
1960[InlineData("DateOnlyDate", Html5DateRenderingMode.Rfc3339, "{0:yyyy-MM-dd}", "date")]
1961[InlineData("DateOnly", Html5DateRenderingMode.CurrentCulture, null, "text")] // Format from [DataType].
1962[InlineData("DateOnly", Html5DateRenderingMode.Rfc3339, null, "text")]
1963[InlineData("DateTimeOffset", Html5DateRenderingMode.CurrentCulture, null, "text")]
1964[InlineData("DateTimeOffset", Html5DateRenderingMode.Rfc3339, @"{0:yyyy-MM-ddTHH\:mm\:ss.fffK}", "text")]
1965[InlineData("DateTimeLocal", Html5DateRenderingMode.CurrentCulture, null, "datetime-local")]
1966[InlineData("DateTimeLocal", Html5DateRenderingMode.Rfc3339, @"{0:yyyy-MM-ddTHH\:mm\:ss.fff}", "datetime-local")]
1967[InlineData("Time", Html5DateRenderingMode.CurrentCulture, "{0:t}", "time")] // Format from [DataType].
1968[InlineData("Time", Html5DateRenderingMode.Rfc3339, @"{0:HH\:mm\:ss.fff}", "time")]
1969[InlineData("Month", Html5DateRenderingMode.CurrentCulture, "{0:yyyy-MM}", "month")]
1970[InlineData("Month", Html5DateRenderingMode.Rfc3339, "{0:yyyy-MM}", "month")]
1971[InlineData("Week", Html5DateRenderingMode.CurrentCulture, null, "week")]
1972[InlineData("Week", Html5DateRenderingMode.Rfc3339, null, "week")]
1973[InlineData("NullableDate", Html5DateRenderingMode.Rfc3339, "{0:yyyy-MM-dd}", "date")]
1974[InlineData("NullableDateTime", Html5DateRenderingMode.Rfc3339, @"{0:yyyy-MM-ddTHH\:mm\:ss.fff}", "datetime-local")]
1975[InlineData("NullableDateOnlyDate", Html5DateRenderingMode.Rfc3339, "{0:yyyy-MM-dd}", "date")]
1976[InlineData("NullableDateOnly", Html5DateRenderingMode.Rfc3339, null, "text")]
1977[InlineData("NullableDateTimeOffset", Html5DateRenderingMode.Rfc3339, @"{0:yyyy-MM-ddTHH\:mm\:ss.fffK}", "text")]
1980Html5DateRenderingMode dateRenderingMode,
2104tagHelper.ViewContext.Html5DateRenderingMode = Html5DateRenderingMode.Rfc3339;
2161tagHelper.ViewContext.Html5DateRenderingMode = Html5DateRenderingMode.Rfc3339;
2235tagHelper.ViewContext.Html5DateRenderingMode = Html5DateRenderingMode.CurrentCulture;
2296tagHelper.ViewContext.Html5DateRenderingMode = Html5DateRenderingMode.CurrentCulture;
2359tagHelper.ViewContext.Html5DateRenderingMode = Html5DateRenderingMode.CurrentCulture;
Microsoft.AspNetCore.Mvc.ViewFeatures (12)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (35)
DefaultEditorTemplatesTest.cs (18)
1002helper.Html5DateRenderingMode = Html5DateRenderingMode.CurrentCulture;
1141helper.Html5DateRenderingMode = Html5DateRenderingMode.CurrentCulture;
1152[InlineData(null, Html5DateRenderingMode.CurrentCulture, "text")]
1153[InlineData(null, Html5DateRenderingMode.Rfc3339, "text")]
1154[InlineData("date", Html5DateRenderingMode.CurrentCulture, "date")]
1155[InlineData("date", Html5DateRenderingMode.Rfc3339, "date")]
1156[InlineData("datetime", Html5DateRenderingMode.CurrentCulture, "datetime-local")]
1157[InlineData("datetime", Html5DateRenderingMode.Rfc3339, "datetime-local")]
1158[InlineData("datetime-local", Html5DateRenderingMode.CurrentCulture, "datetime-local")]
1159[InlineData("datetime-local", Html5DateRenderingMode.Rfc3339, "datetime-local")]
1160[InlineData("time", Html5DateRenderingMode.CurrentCulture, "time")]
1161[InlineData("time", Html5DateRenderingMode.Rfc3339, "time")]
1162[InlineData("month", Html5DateRenderingMode.CurrentCulture, "month")]
1163[InlineData("month", Html5DateRenderingMode.Rfc3339, "month")]
1164[InlineData("week", Html5DateRenderingMode.CurrentCulture, "week")]
1165[InlineData("week", Html5DateRenderingMode.Rfc3339, "week")]
1166public void Editor_AppliesNonDefaultEditFormat(string dataTypeName, Html5DateRenderingMode renderingMode, string expectedType)
1363public Html5DateRenderingMode Html5DateRenderingMode
DefaultHtmlGeneratorTest.cs (17)
331public static TheoryData<string, Html5DateRenderingMode, bool> GenerateTextBox_InvariantFormattingData
335return new TheoryData<string, Html5DateRenderingMode, bool>
337{"text", Html5DateRenderingMode.Rfc3339, false },
338{"number", Html5DateRenderingMode.Rfc3339, true },
339{"range", Html5DateRenderingMode.Rfc3339, true },
340{"date", Html5DateRenderingMode.Rfc3339, true },
341{"datetime-local", Html5DateRenderingMode.Rfc3339, true },
342{"month", Html5DateRenderingMode.Rfc3339, true },
343{"time", Html5DateRenderingMode.Rfc3339, true },
344{"week", Html5DateRenderingMode.Rfc3339 , true },
345{"date", Html5DateRenderingMode.CurrentCulture, false },
346{"datetime-local", Html5DateRenderingMode.CurrentCulture, false },
347{"month", Html5DateRenderingMode.CurrentCulture, false },
348{"time", Html5DateRenderingMode.CurrentCulture, false },
349{"week", Html5DateRenderingMode.CurrentCulture, false },
356public void GenerateTextBox_UsesCultureInvariantFormatting_ForAppropriateTypes(string type, Html5DateRenderingMode dateRenderingMode, bool shouldUseInvariantFormatting)
385public void GenerateTextBox_AlwaysUsesCultureSpecificFormatting_WhenOptionIsSet(string type, Html5DateRenderingMode dateRenderingMode, bool shouldUseInvariantFormatting)
RazorWebSite (1)