20 writes to ModelExplorer
Microsoft.AspNetCore.Mvc.Razor.Test (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (11)
ViewDataDictionary.cs (10)
127ModelExplorer = _metadataProvider.GetModelExplorerForType(declaredModelType, model: null);
203ModelExplorer = _metadataProvider.GetModelExplorerForType(modelOrDeclaredType, model);
208ModelExplorer = _metadataProvider.GetModelExplorerForType(modelOrDeclaredType, model);
213ModelExplorer = _metadataProvider.GetModelExplorerForType(modelType, model);
218ModelExplorer = source.ModelExplorer;
223ModelExplorer = new ModelExplorer(
450ModelExplorer = _metadataProvider.GetModelExplorerForType(modelType, value);
458ModelExplorer = _metadataProvider.GetModelExplorerForType(modelType, value);
471ModelExplorer = _metadataProvider.GetModelExplorerForType(_declaredModelType, value);
477ModelExplorer = new ModelExplorer(_metadataProvider, ModelExplorer.Container, ModelMetadata, value);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (7)
58 references to ModelExplorer
Microsoft.AspNetCore.Mvc.Razor.Test (3)
Microsoft.AspNetCore.Mvc.ViewFeatures (17)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (38)
ViewDataDictionaryTest.cs (19)
290Assert.NotSame(source.ModelExplorer, viewData.ModelExplorer);
313Assert.NotSame(source.ModelExplorer, viewData.ModelExplorer);
328var originalExplorer = viewData.ModelExplorer;
335Assert.NotNull(viewData.ModelExplorer);
337Assert.Equal(5, viewData.ModelExplorer.Model);
339Assert.NotSame(originalExplorer, viewData.ModelExplorer);
360Assert.NotNull(viewData.ModelExplorer);
362Assert.NotSame(explorer, viewData.ModelExplorer);
386Assert.NotNull(viewData.ModelExplorer);
388Assert.NotSame(explorer, viewData.ModelExplorer);
389Assert.Equal(viewData.Model, viewData.ModelExplorer.Model);
420var originalExplorer = viewData.ModelExplorer;
427Assert.NotNull(viewData.ModelExplorer);
429Assert.Equal(3, viewData.ModelExplorer.Model);
431Assert.NotSame(originalExplorer, viewData.ModelExplorer);
447var originalExplorer = viewData.ModelExplorer;
456Assert.Same(originalExplorer, viewData.ModelExplorer);