The InMemory database provider is what makes testing data access code and data logic easy in Entity Framework.
- [Instructor] The in-memory database provider…is what makes testing data access code…and data logic easy in Entity Framework.…It isn't a real relational database, so it doesn't enforce…foreign keys or create default values like a real database.…This means the database level errors can still slip by…in unit testing with the in-memory database,…but it is still useful…for a lot of different types of tests.…Let's see what it looks like by creating some simple tests…in our demo project.…First, let's create a test against moveSalespersonToGroup…since we don't have a front end for that method yet.…
Right-click the solution an select Add > New Project.…Ensure .NET Core is selected.…Then select Unit Test Project.…This will create a MS test or Visual Studio test project.…Visual Studio also integrates with xUnit tests,…which have some slightly different paradigms…but generally do the same thing.…We're going to demo with the MS test project.…Name the project HPlusSports.Core.Test.…
When the project is created, rename UnitTest1,…
- What is good application architecture?
- Real-world software and the SDLC
- Common knowledge and maintenance
- Choosing an architecture
- Design patterns with EF
- Debugging and error handling
- Architecture for the web with ASP.NET
- Designing for unit testing
- Strategies for dealing with common performance issues
Skill Level Advanced
Deploying ASP.NET Core Applicationswith Nate Barbettini57m 57s Intermediate
Microsoft SQL Server 2016 Essential Trainingwith Martin Guidry3h 18m Intermediate
1. Why Do All of This Architecture?
2. Design Patterns with EF
3. Error Handling
4. Architecture for the Web with ASP.NET
5. Designing for Unit Testing
6. Entity Framework Mistakes
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.