ContosoUniversityDotNetCore-Pages
Respawn
Our great sponsors
ContosoUniversityDotNetCore-Pages | Respawn | |
---|---|---|
20 | 9 | |
1,227 | 2,517 | |
- | - | |
0.0 | 3.9 | |
over 1 year ago | about 1 month ago | |
C# | C# | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ContosoUniversityDotNetCore-Pages
-
Where to put business logic when using projection with EF?
Let's take this project and query as an example: https://github.com/jbogard/ContosoUniversityDotNetCore-Pages/blob/master/ContosoUniversity/Pages/Students/Details.cshtml.cs
- Multiple projects in sln - where to install dependencies?
-
Any good Web API examples using Vertical Slices?
Check out Jimmy Bogard's example here: https://github.com/jbogard/ContosoUniversityDotNetCore-Pages
- Why doesn't this page show newly created students?
-
We Need to Have a Talk About MediatR
Discussions
- Why do I distrust people who talk about Clean Architecture?
- Clean Architecture Solution Template for .NET 6 - Updated to fix the more glaring problems
- Do big tech companies (Service industry) prefer clean architecture or n-layer architecture for building apps?
- Know a well-written Web Project that serves as a good reference?
-
Using Context in Controller Versus Services in .NET 5?
Vertical Slice architecture! This project is a great example It uses razor pages over mvc, but the same principles can be applied.
Respawn
- Respawn: Intelligent database cleaner for integration tests
-
C# Tests failing using XUnit and EF InMemoryDatabase
ImMemoryDb isnt recommended for testing as it doesnt behave as a real database. Save yourself trouble and use a real database paired with Respawn.
-
Testing survey
I come from a .NET background and in the .NET environment I used to seed the database with the necessary data on each test and then clean the database at the end of the test using the Respawn library.
-
Opinions regarding move to TDD-focused employer
This was our initial approach (using sqlite) but our migrations take a while to run and this resulted in slow tests. Using Respawn to clean the db significantly improved test performance (https://github.com/jbogard/Respawn)
- [Parte 8] ASP.NET Core: Integration Tests
-
Pain & Gain of automated tests against SQL
Have you used something like Respwan https://github.com/jbogard/Respawn instead of creating and cleaning or deleting database every time? Not sure if it would help you. But I thought it might make your workflow little simpler. Respawn lets to restore db to a restore point.
-
share one RazorPage application of CleanArchitecture Project
NUnit, FluentAssertions, Moq & Respawn
- Swapping MSSQL provider for SQLite for testing?
-
Integration testing Api
You will need a separate test database purely for integration tests. You will need to reset the state of the DB every time using something like https://github.com/jbogard/Respawn. I always use the (localdb)\mssqllocal SQL instance that comes as standard with VS for dev and integration test databases.
What are some alternatives?
CleanArchitecture - Clean Architecture Solution Template for ASP.NET Core
NUnit - NUnit Framework
eShopOnWeb - Sample ASP.NET Core 8.0 reference application, powered by Microsoft, demonstrating a layered application architecture with monolithic deployment model. Download the eBook PDF from docs folder.
EntityFramework.Docs - Documentation for Entity Framework Core and Entity Framework 6
modular-monolith-with-ddd - Full Modular Monolith application with Domain-Driven Design approach.
CleanArchitectureCodeGenerator - Generate the application features code class that conforms to the CQRS design pattern in the Application project - Visual Studio.net 2022 Extensions plugin
nopCommerce - ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
Brighter - A framework for building messaging apps with .NET and C#.
pluralsight-ddd-fundamentals - Sample code for the Pluralsight DDD Fundamentals course by Julie Lerman and Steve "ardalis" Smith
DbSample - Example of automated tests against SQL Server with EF Core
AspNetCore.BookStore - ASP.NET Core application using Command Pattern and Repository Pattern
MinimalApiArchitecture - .NET 8 Minimal API with Vertical Slice Architecture