Skip to Content
C# and .NET Core Test-Driven Development
book

C# and .NET Core Test-Driven Development

by Ayobami Adewole
May 2018
Intermediate to advanced content levelIntermediate to advanced
300 pages
7h 35m
English
Packt Publishing
Content preview from C# and .NET Core Test-Driven Development

Unit testing razor pages

In ASP.NET MVC, views are the components that are used for rendering a web application's user interface. The view presents information contained in the model in a suitable and easy-to-understand output format, such as HTML, XML, XHTML, or JSON. The view generates output to the user based on the update performed on the model.

Razor pages make coding features on pages relatively easier. A razor page is similar to a razor view, with the addition of the @page directive. The @page directive must be the first directive in the page, it automatically converts the file into an MVC action handling requests without going through the controller.

In ASP.NET Core, razor pages can be tested to ensure they work correctly in isolation ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Design Patterns with C# and .NET Core

Hands-On Design Patterns with C# and .NET Core

Gaurav Aroraa, Jeffrey Chilberto
.NET Core in Action

.NET Core in Action

Dustin Metzgar

Publisher Resources

ISBN: 9781788292481Supplemental Content