17 writes to Content
BasicWebSite (1)
Filters\TestExceptionFilter.cs (1)
17
context.Result = new ContentResult() {
Content
= "Exception was handled in TestExceptionFilter", StatusCode = 200 };
ControllersFromServicesClassLibrary (3)
ControllerWithConstructorInjection.cs (1)
35
return new ContentResult {
Content
= content };
Inventory.cs (1)
13
return new ContentResult {
Content
= "4" };
TimeScheduleController.cs (1)
13
return new ContentResult {
Content
= "No schedules available for " + id };
ControllersFromServicesWebSite (1)
AnotherController.cs (1)
14
return new ContentResult {
Content
= "1" };
CorsWebSite (1)
Filters\AllRequestsBlockingAuthorizationFilter.cs (1)
16
Content
= "You are unauthorized!!",
Microsoft.AspNetCore.Mvc.Core (1)
ControllerBase.cs (1)
289
Content
= content,
Microsoft.AspNetCore.Mvc.Core.Test (3)
ContentResultTest.cs (3)
29
Content
= null,
124
Content
= content,
227
Content
= content,
Microsoft.AspNetCore.Mvc.RazorPages (2)
PageBase.cs (1)
256
Content
= content,
PageModel.cs (1)
588
Content
= content,
Microsoft.AspNetCore.Mvc.RazorPages.Test (4)
Infrastructure\ExecutorFactoryTest.cs (4)
231
Content
= $"{arg2} {arg1}",
256
Content
= arg,
276
Content
= $"{arg2} {arg1}",
301
Content
= arg,
RazorPagesWebSite (1)
Pages\PropertyBinding\PolymorphicBinding.cs (1)
21
return new ContentResult {
Content
= UserModel.ToString() };
15 references to Content
Microsoft.AspNetCore.Mvc.Core (3)
Infrastructure\ContentResultExecutor.cs (3)
58
if (result.
Content
!= null)
60
response.ContentLength = resolvedContentTypeEncoding.GetByteCount(result.
Content
);
64
await textWriter.WriteAsync(result.
Content
);
Microsoft.AspNetCore.Mvc.Core.Test (3)
ControllerBaseTest.cs (3)
2190
Assert.Equal("TestContent", actualContentResult.
Content
);
2205
Assert.Equal("TestContent", actualContentResult.
Content
);
2221
Assert.Equal("TestContent", actualContentResult.
Content
);
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
Infrastructure\ExecutorFactoryTest.cs (2)
71
Assert.Equal("Hello 0", contentResult.
Content
);
160
Assert.Equal("value", contentResult.
Content
);
PageModelTest.cs (3)
1575
Assert.Equal("TestContent", actualContentResult.
Content
);
1590
Assert.Equal("TestContent", actualContentResult.
Content
);
1606
Assert.Equal("TestContent", actualContentResult.
Content
);
PageTest.cs (3)
1565
Assert.Equal("TestContent", actualContentResult.
Content
);
1580
Assert.Equal("TestContent", actualContentResult.
Content
);
1596
Assert.Equal("TestContent", actualContentResult.
Content
);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
ControllerUnitTestabilityTests.cs (1)
76
Assert.Equal(content, contentResult.
Content
);