CleanArchitecture
xUnit
CleanArchitecture | xUnit | |
---|---|---|
19 | 44 | |
17,219 | 4,405 | |
0.8% | 0.5% | |
8.6 | 9.6 | |
2 days ago | 9 days ago | |
C# | C# | |
MIT License | GNU General Public License v3.0 or later |
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.
CleanArchitecture
-
AdonisJS
Looking at this, it has similar aspects as ASP.NET Core, and the same flaws as the Controller per class design used. Methods such as "create", "show" and "store" do not share a state, they shouldn't share a class either.
However, you can rectify this, by just not trying to share a class with any of those. In .NET Steve Smith, aka Ardalis shows how to do this with his Clean architecture idea [1], Idea is to make a class for each endpoint. This also makes it easier for "Update" classes to share functionality with other "Update" classes and so on.
[1]: https://github.com/ardalis/CleanArchitecture/tree/main/sampl...
-
Dotnet.World.News(Wednesday, September, 20, 2023)
🔴 [CleanArchitecture] (Learning Template + Docs): A starting point for Clean Architecture with ASP.NET Core. Clean Architecture is just the latest in a series of names for the same loosely-coupled, dependency-inverted architecture.
- Advice for the web API app development using clean architecture in .NET 6.
- Не знаю где задать этот вопрос
- Where can I learn more about Design Patterns & Clean Architecture in .NET?
-
Learning .NET core as a front-end developer
Here’s a few: - complex domain driven example using vertical slice - another DDD example - clean architecture template by Jason taylor - clean architecture template by ardalis
-
Ask HN: Examples of Top C# Code?
This repository is a good place to start with modern c# code, specifically ASP.NET
https://github.com/ardalis/CleanArchitecture
-
API’s in ASP.NET
If you want to try clean architecture, you can check out Steve smith’s repo or Jason Taylor’s repo.
- Tips to develop a Blazor Server app that’s easy to migrate to WASM in the future
-
Measuring maintainability metrics with NDepend
🔗 Clean Architecture repository | GitHub
xUnit
- Primeiros testes unitários em C# com xUnit (parte 1)
-
TDD helper in c#
Neovolve.Logging.Xunit written by Rory Primrose is a NuGet package that provides an ILogger or ILogger, which integrates with the ITestOutputHelper used by xUnit. This helper enables log messages to be written directly to the test output during each test execution. As a result, any log messages from the tested classes are included in the xUnit test result output.
-
Fluent Assertions 8: Corporate License Update
In light of these changes, developers have several options moving forward. The simplest short-term solution is to lock dependencies to Fluent Assertions version 7, which remains under the Apache 2.0 license and allows free commercial use; for those seeking alternatives, libraries like Shouldly offer similar functionality with a fluent interface, while testing frameworks like xUnit, NUnit, and MSTest provide built-in assertion APIs that can serve as replacements.
-
From Bug Fixes to Best Practices: My Open Source Contributions to ChatCraft and xUnit
Add an analyzer which recommends nameof usage #2991
-
Hacktoberfest 4/4: The final PR
The first task for me was to figure out what testing framework had been used by Libplanet, and after going through their Contribution.md, I found that the library uses Xunit.net for testing purposes. I have worked with Xunit before, so it was not new to me. I tried building the project locally, but I got an error saying the project was using .NET 6, and my PC had .NET 8. As a result, I installed .NET 6. After that, I made the changes and tried running the unit tests. Initially, I was confused because I was looking for TestUtils in the test output but couldn’t find it. After some time, I realized that TestUtils is a utility class used by other unit tests, and I found some tests that used TestUtils in their code. The code worked as expected, so I messaged on the issue with the new code, and the repo maintainer asked me to submit a PR.
-
Essential .NET Libraries Every Developer Should Know
xUnit provides a more modern approach to unit testing with fewer constraints.
- Testcontainers: Testes de Integração em Containers
-
20 Top C# Frameworks and Libraries on GitHub for Building Powerful Applications
20. XUnit
-
Optimizing C# code analysis for quicker .NET compilation
Several well-known NuGet packages such as xUnit.net, FluentAssertions, StyleCop, Entity Framework Core, and others include by default a significant number of Roslyn analyzers. They help you adhere to the conventions and best practices of these libraries.
-
Integration testing in Umbraco 10+: Validating document types
Most of my rules apply to document types, so let's build some tests for document types. We start by creating a new test class and a new test function and getting a list of all document types. This test is created using xUnit and FluentAssertions:
What are some alternatives?
CleanArchitecture - Clean Architecture Solution Template for ASP.NET Core
Shouldly - Should testing for .NET—the way assertions should be!
blazor-starter-kit - Clean Architecture Template for Blazor WebAssembly Built with MudBlazor Components.
Fluent Assertions - A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit tests. Targets .NET Framework 4.7, as well as .NET Core 2.1, .NET Core 3.0, .NET 6, .NET Standard 2.0 and 2.1. Supports the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.
GuardClauses - A simple package with guard clause extensions.
Moq - Repo for managing Moq 4.x [Moved to: https://github.com/moq/moq]