23 references to TestModel
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (23)
ModelStateDictionaryExtensionsTest.cs (23)
15dictionary.AddModelError<TestModel>(model => model.Text, "Message");
32dictionary.AddModelError<TestModel>(model => model.Child.Text, "Message");
49dictionary.AddModelError<TestModel>(model => model.Child.Value, "Message");
67dictionary.AddModelError<TestModel>(model => variable, "Message");
85dictionary.TryAddModelException<TestModel>(model => model.Text, exception);
102var metadata = provider.GetMetadataForProperty(typeof(TestModel), nameof(TestModel.Text));
105dictionary.AddModelError<TestModel>(model => model.Text, exception, metadata);
123dictionary.TryAddModelException<TestModel>(model => model.Child.Text, exception);
143dictionary.AddModelError<TestModel>(model => model.Child.Text, exception, metadata);
161dictionary.TryAddModelException<TestModel>(model => model.Child.Value, exception);
181dictionary.AddModelError<TestModel>(model => model.Child.Value, exception, metadata);
200dictionary.TryAddModelException<TestModel>(model => variable, exception);
221dictionary.AddModelError<TestModel>(model => variable, exception, metadata);
239dictionary.Remove<TestModel>(model => model.Text);
253dictionary.Remove<TestModel>(model => model.Child.Text);
267dictionary.Remove<TestModel>(model => model.Child.Value);
282dictionary.Remove<TestModel>(model => variable);
300dictionary.RemoveAll<TestModel>(model => model.Text);
320dictionary.RemoveAll<TestModel>(model => model.Child);
339dictionary.RemoveAll<TestModel>(model => model.Child.Value);
362dictionary.RemoveAll<TestModel>(model => variable);
384dictionary.RemoveAll<TestModel>(model => model);