2 writes to RelativePath
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\PageRouteModel.cs (2)
33
RelativePath
= relativePath ?? throw new ArgumentNullException(nameof(relativePath));
50
RelativePath
= other.RelativePath;
34 references to RelativePath
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (3)
RazorProjectPageRouteModelProvider.cs (2)
56
if (context.RouteModels.Any(m => string.Equals(relativePath, m.
RelativePath
, StringComparison.OrdinalIgnoreCase)))
85
if (context.RouteModels.Any(m => string.Equals(relativePath, m.
RelativePath
, StringComparison.OrdinalIgnoreCase)))
src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (1)
63
var fileName = Path.GetFileName(model.
RelativePath
);
Microsoft.AspNetCore.Mvc.RazorPages (3)
ApplicationModels\PageRouteModel.cs (1)
50
RelativePath = other.
RelativePath
;
ApplicationModels\PageRouteModelFactory.cs (1)
63
var fileName = Path.GetFileName(model.
RelativePath
);
Infrastructure\PageActionDescriptorProvider.cs (1)
106
RelativePath = model.
RelativePath
,
Microsoft.AspNetCore.Mvc.RazorPages.Test (28)
ApplicationModels\CompiledPageRouteModelProviderTest.cs (17)
40
Assert.Equal("/Pages/About.cshtml", result.
RelativePath
);
55
Assert.Equal("/Pages/Home.cshtml", result.
RelativePath
);
102
Assert.Equal("/Areas/Products/Pages/About.cshtml", result.
RelativePath
);
122
Assert.Equal("/Areas/Products/Pages/Manage/Index.cshtml", result.
RelativePath
);
142
Assert.Equal("/Areas/Products/Pages/Manage/Edit.cshtml", result.
RelativePath
);
190
Assert.Equal("/Areas/Accounts/Pages/Manage/Home.cshtml", result.
RelativePath
);
210
Assert.Equal("/Contact.cshtml", result.
RelativePath
);
250
Assert.Equal("/Pages/Index.cshtml", result.
RelativePath
);
259
Assert.Equal("/Pages/Admin/Index.cshtml", result.
RelativePath
);
292
Assert.Equal("/Pages/Index.cshtml", result.
RelativePath
);
301
Assert.Equal("/Pages/Admin/Index.cshtml", result.
RelativePath
);
337
Assert.Equal("/Pages/Index.cshtml", result.
RelativePath
);
345
Assert.Equal("/Pages/Home.cshtml", result.
RelativePath
);
381
Assert.Equal("/Pages/About.cshtml", result.
RelativePath
);
386
Assert.Equal("/Pages/Home.cshtml", result.
RelativePath
);
412
Assert.Equal("/Pages/_About.cshtml", result.
RelativePath
);
427
Assert.Equal("/Pages/Home.cshtml", result.
RelativePath
);
ApplicationModels\PageRouteModelFactoryTest.cs (5)
23
Assert.Equal(relativePath, routeModel.
RelativePath
);
52
Assert.Equal(relativePath, routeModel.
RelativePath
);
81
Assert.Equal(relativePath, routeModel.
RelativePath
);
109
Assert.Equal(relativePath, routeModel.
RelativePath
);
143
Assert.Equal(relativePath, routeModel.
RelativePath
);
DependencyInjection\PageConventionCollectionExtensionsTest.cs (2)
951
Assert.Equal("/Pages/Profile.cshtml", model.
RelativePath
);
961
Assert.Equal("/Areas/Accounts/Pages/Profile.cshtml", model.
RelativePath
);
Infrastructure\PageActionDescriptorProviderTest.cs (4)
101
Assert.Equal(model.
RelativePath
, descriptor.RelativePath);
151
Assert.Equal(model.
RelativePath
, descriptor.RelativePath);
197
Assert.Equal(model.
RelativePath
, descriptor.RelativePath);
231
Assert.Equal(model.
RelativePath
, descriptor.RelativePath);