- 4
- 0
Engr. Kent Ivan R. Unabia
เข้าร่วมเมื่อ 16 เม.ย. 2018
SportsStore: A real application - part 1
This chapter covers
• Creating the SportsStore ASP.NET Core project
• Adding a data model and support for a database
• Displaying a basic product catalog
• Paginating data
• Styling content
Our application, called SportsStore, will follow the classic approach taken by online stores everywhere. I will create an online product catalog that customers can browse by category and page, a shopping cart where users can add and remove products, and a checkout where customers can enter their shipping details. I will also create an administration area that includes create, read, update, and delete (CRUD) facilities for managing the catalog, and I will protect it so that only logged-in administrators can make
changes.
Our goal in this chapter and those that follow is to give you a sense of what real ASP.NET Core development is by creating as realistic an example as possible. I want to focus on ASP.NET Core, of course, so I have simplified the integration with external systems, such as the database, and omitted others entirely, such as payment processing.
We might find the going a little slow as I build up the levels of infrastructure I need, but the initial investment will result in maintainable, extensible, well-structured code with excellent support for unit testing.
• Creating the SportsStore ASP.NET Core project
• Adding a data model and support for a database
• Displaying a basic product catalog
• Paginating data
• Styling content
Our application, called SportsStore, will follow the classic approach taken by online stores everywhere. I will create an online product catalog that customers can browse by category and page, a shopping cart where users can add and remove products, and a checkout where customers can enter their shipping details. I will also create an administration area that includes create, read, update, and delete (CRUD) facilities for managing the catalog, and I will protect it so that only logged-in administrators can make
changes.
Our goal in this chapter and those that follow is to give you a sense of what real ASP.NET Core development is by creating as realistic an example as possible. I want to focus on ASP.NET Core, of course, so I have simplified the integration with external systems, such as the database, and omitted others entirely, such as payment processing.
We might find the going a little slow as I build up the levels of infrastructure I need, but the initial investment will result in maintainable, extensible, well-structured code with excellent support for unit testing.
มุมมอง: 285
วีดีโอ
Testing ASP.NET Core applications
มุมมอง 435 ชั่วโมงที่ผ่านมา
This chapter covers • Creating unit tests projects for ASP.NET Core application • Writing and running unit tests • Isolating application components for testing • Simplifying component isolation with a mocking package In this chapter, I demonstrate how to unit test ASP.NET Core applications. Unit testing is a form of testing in which individual components are isolated from the rest of the applic...
Essential C# features
มุมมอง 315 ชั่วโมงที่ผ่านมา
This chapter covers • C# language features useful for ASP.NET Core development • Dealing with null values and the null state analysis feature • Concisely creating objects • Adding features to classes without directly modifying them • Concisely expressing functions • Modifying interfaces without breaking implementation classes • Concisely defining asynchronous methods In this chapter, I describe...
Your first ASP.NET Core application
มุมมอง 2245 ชั่วโมงที่ผ่านมา
Imagine that a friend has decided to host a New Year's Eve party and that she has asked me to create a web app that allows her invitees to electronically RSVP. She has asked for these four key features: • A home page that shows information about the party • A form that can be used to RSVP • Validation for the RSVP form, which will display a thank-you page • A summary page that shows who is comi...