dotnet-backend-patterns

29.9k
wshobsonwshobson

Master C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.

192 days ago

Backend Testing

2.5k
exceptionlessexceptionless

Backend testing with xUnit, Foundatio.Xunit, integration tests with AppWebHostFactory, FluentClient, ProxyTimeProvider for time manipulation, and test data builders. Keywords: xUnit, Fact, Theory, integration tests, AppWebHostFactory, FluentClient, ProxyTimeProvider, TimeProvider, Foundatio.Xunit, TestWithLoggingBase, test data builders

192 days ago

aspire-integration-testing

445
AarononthewebAaronontheweb

Write integration tests using .NET Aspire's testing facilities with xUnit. Covers test fixtures, distributed application setup, endpoint discovery, and patterns for testing ASP.NET Core apps with real dependencies.

192 days ago

testcontainers-integration-tests

445
AarononthewebAaronontheweb

Write integration tests using TestContainers for .NET with xUnit. Covers infrastructure testing with real databases, message queues, and caches in Docker containers instead of mocks.

192 days ago

net-testing

134
mitkoxmitkox

Set up comprehensive testing framework with xUnit, Moq, and TestContainers

192 days ago

ln-743-test-infrastructure

131
levnikolaevichlevnikolaevich

Creates test infrastructure with Vitest, xUnit, and pytest

192 days ago

dotnet-test

114
NikiforovAllNikiforovAll

This skill should be used when running .NET tests selectively with a build-first, test-targeted workflow. Use it for running tests with xUnit focus.

192 days ago

test-generator

72
AIDotNetAIDotNet

自动生成全面的测试套件,包括单元测试、集成测试和E2E测试,支持Jest、Vitest、pytest、xUnit等。

192 days ago

.NET Testing Patterns

71
PramodDuttaPramodDutta

.NET testing with xUnit, NUnit, MSTest, FluentAssertions, Moq, integration testing with WebApplicationFactory, and Entity Framework testing.

dotnetcsharpxunit+2
192 days ago

unit-testing

40
ronnythedevronnythedev

Generates unit tests for command and query handlers using xUnit and NSubstitute. Implements Arrange-Act-Assert pattern with comprehensive test coverage for success and failure scenarios.

192 days ago

testing

33
oxedomoxedom

Software testing expertise for writing effective tests. Use when writing tests, reviewing test quality, designing test suites, debugging test failures, or implementing TDD. Covers xUnit patterns, test case selection, mocks/fixtures, parametrization, testing stateful systems, BDD, golden/snapshot testing, and LLM output evaluation.

192 days ago

qa-engineer

18
jguadagnojguadagno

QA Automation Engineer skill. Use this to write or refactor unit tests. Ensures tests follow the project's xUnit, FluentAssertions, and Moq standards.

192 days ago

.NET Testing

16
kevintsengtwkevintsengtw

.NET testing foundational skills overview and guidance hub. Triggered when users ask general testing questions such as "how to write .NET tests", ".NET testing getting started", "what testing tools are needed", "testing best practices", or "learn testing from scratch". It recommends appropriate combinations of subskills based on specific needs, covering 19 foundational skills including testing basics, test data, assertions, mocking, and special scenarios. Keywords: dotnet testing, .NET testing, testing getting started, how to write tests, testing best practices, unit test, xUnit, 3A pattern, FIRST principles, assertion, mock, stub, NSubstitute, test data, AutoFixture, Bogus, validator, FluentValidation, TimeProvider, IFileSystem, code coverage, ITestOutputHelper, test naming

192 days ago

dotnet-testing-advanced

16
kevintsengtwkevintsengtw

.NET advanced testing skills overview and guidance hub. Triggered when a user asks about “integration testing”, “API testing”, “containerized testing”, “microservice testing”, “test framework migration”, “Testcontainers”, “Aspire testing”, or other advanced testing needs. It recommends appropriate combinations of sub-skills based on specific requirements, covering 8 advanced skill areas including integration testing, Testcontainers, Aspire testing, and framework upgrades. Keywords: integration testing, API testing, container testing, containerized testing, microservice testing, advanced testing, Testcontainers, Aspire testing, WebApplicationFactory, TestServer, database testing, EF Core testing, MongoDB testing, Redis testing, Docker testing, microservice test, .NET Aspire, xUnit upgrade, TUnit, framework migration

192 days ago

dotnet-testing-test-output-logging

16
kevintsengtwkevintsengtw

Complete guide to xUnit test output and logging. Use when implementing test output, diagnostic logging, or ILogger substitutes in xUnit tests. Covers ITestOutputHelper injection, the AbstractLogger pattern, and structured output design. Includes implementations of XUnitLogger, CompositeLogger, and a performance-test diagnostics tool. Keywords: ITestOutputHelper, ILogger testing, test output xunit, test output, test logging, AbstractLogger, XUnitLogger, CompositeLogger, testOutputHelper.WriteLine, test diagnostics, logger mock, test logs, structured output, Received().Log

192 days ago

dotnet-testing-advanced-tunit-fundamentals

16
kevintsengtwkevintsengtw

Complete guide to getting started with the next-generation TUnit testing framework. Use when creating TUnit test projects or migrating from xUnit to TUnit. Covers Source Generator–driven test discovery, AOT compilation support, and fluent asynchronous assertions. Includes project creation, the [Test] attribute, lifecycle management, parallel control, and a syntax comparison with xUnit. Keywords: TUnit, tunit testing, source generator testing, AOT testing, next-generation testing framework, [Test], [Arguments], TUnit.Assertions, Assert.That, Before(Test), After(Test), NotInParallel, TUnit.Templates, Microsoft.Testing.Platform, TUnit vs xUnit, parallel execution

192 days ago

dotnet-testing-xunit-project-setup

16
kevintsengtwkevintsengtw

A specialized skill for creating and configuring xUnit test projects. Use this when you need to create a test project, set up project structure, configure NuGet packages, and organize test folders. Covers csproj settings, package management, project structure, xunit.runner.json configuration, and related topics. Keywords: xunit project, xunit setup, test project creation, test project setup, create test project, project structure, folder structure, xunit package, nuget packages, test suite, how to create test project, xunit configuration

192 days ago

dotnet-testing-autodata-xunit-integration

16
kevintsengtwkevintsengtw

Complete guide to integrating AutoFixture with xUnit. Use when you need AutoData or InlineAutoData to simplify xUnit parameterized test data setup. Covers custom Customization and test data attributes to improve test readability and maintainability. Keywords: AutoData, InlineAutoData, AutoFixture xUnit, [AutoData], [InlineAutoData], AutoDataAttribute, ICustomization, DataAttribute, parameterized tests, Theory AutoData, MemberAutoData, test data attributes, fixture.Customize

192 days ago

Dotnet Testing - AutoFixture Basics

16
kevintsengtwkevintsengtw

Basic skills for using AutoFixture to automatically generate test data. Use when you need to quickly create test objects, reduce boilerplate code, or enable anonymous testing. Covers Fixture.Create, CreateMany, handling circular references, integration with xUnit, etc. Keywords: autofixture, fixture, test data generation, anonymous testing, fixture.Create, CreateMany, fixture.Build, Create<T>, AutoFixture.Xunit2, OmitOnRecursionBehavior, IFixture, generate test data

192 days ago

dotnet-testing-advanced-xunit-upgrade-guide

16
kevintsengtwkevintsengtw

Complete upgrade guide from xUnit 2.9.x to 3.x. Use this when you need to upgrade xUnit v2 to v3 or to learn about xUnit v3 new features and breaking changes. Covers package updates, fixes for async void tests, and adjustments to IAsyncLifetime. Includes introductions to new features: Assert.Skip, Explicit tests, Matrix Theory, Assembly Fixtures. Keywords: xunit upgrade, xunit v3, xunit 3.x, xunit migration, xunit upgrade, xunit.v3, OutputType Exe, IAsyncLifetime v3, Assert.Skip, SkipUnless, SkipWhen, Explicit attribute, MatrixTheoryData, AssemblyFixture, breaking changes

192 days ago

eventuras-testing

15
losollosol

Running and managing tests in the Eventuras monorepo (xUnit backend tests, Playwright E2E tests, integration tests)

192 days ago

api-integration-testing

11
thapaliyabikendrathapaliyabikendra

Integration testing patterns for ABP Framework APIs using xUnit and WebApplicationFactory. Use when: (1) testing API endpoints end-to-end, (2) verifying HTTP status codes and responses, (3) testing authorization, (4) database integration tests.

192 days ago

xunit-testing-patterns

11
Thapaliyabikendra Ai Artifacts Xunit Testing PatternsThapaliyabikendra Ai Artifacts Xunit Testing Patterns

Master xUnit testing patterns for ABP Framework applications including unit tests, integration tests, test data seeders, and mocking strategies. Use when: (1) writing xUnit tests for ABP services, (2) creating test data seeders, (3) implementing integration tests, (4) setting up test infrastructure.

192 days ago

generating-tests

11
thapaliyabikendrathapaliyabikendra

Generates xUnit tests for C#/.NET ABP Framework code using NSubstitute and Shouldly. Use when the user asks to generate tests, create test coverage, write unit tests, write integration tests, fill coverage gaps, or test a class or file. Supports AppServices, Validators, and HTTP API Controllers.

192 days ago

Test Framework Detector

10
FortiumPartnersFortiumPartners

Automatically detect test frameworks (Jest, pytest, RSpec, xUnit) in projects by analyzing configuration files and dependencies

192 days ago

xUnit Test Framework

10
FortiumPartnersFortiumPartners

Execute and generate xUnit tests for C#/.NET projects with FluentAssertions and Moq support

192 days ago

test-generation

7
CongDon1207CongDon1207

Use for DEVELOPER-focused unit/integration test code with xUnit (C#) and Jest (Angular) patterns. Provides ready-to-use test templates for commands, queries, entities, and components. Best for implementing actual test code. NOT for QA test specifications (use test-generation instead).

192 days ago

qa-engineer

6
cwoodruffcwoodruff

QA Automation Engineer skill. Use this to write or refactor unit tests. Ensures tests follow the project's xUnit, FluentAssertions, and Moq standards.

192 days ago

dotnet-backend-patterns

1
mattmremattmre

Master C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.

192 days ago

dotnet-add-testing

1
wshaddixwshaddix

Adding test infrastructure to a .NET project. Scaffolds xUnit project, coverlet, layout.

192 days ago

dotnet-xunit

1
wshaddixwshaddix

Writing xUnit tests. v3 Fact/Theory, fixtures, parallelism, IAsyncLifetime, v2 compatibility.

192 days ago

aspire-integration-testing

1
wshaddixwshaddix

Write integration tests using .NET Aspire's testing facilities with xUnit. Covers test fixtures, distributed application setup, endpoint discovery, and patterns for testing ASP.NET Core apps with real dependencies. Use when writing integration tests for .NET Aspire applications, testing ASP.NET Core apps with real database connections, or verifying service-to-service communication in distributed applications.

192 days ago

dotnet-backend-patterns

oki3505Foki3505F

Master C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.

192 days ago

dotnet-code-quality-reviewer-prompt

fiatkongenfiatkongen

Use when a .NET/C# implementation task is complete and needs quality-focused code review, especially xUnit test quality (behavioral tests, assertion counts, NSubstitute mock boundaries, anti-patterns like getter/setter tests)

192 days ago

dotnet-testcontainers

RyoMurakami1983RyoMurakami1983

Write integration tests using Testcontainers for .NET with xUnit and real Docker infrastructure. Covers SQL Server, PostgreSQL, Redis, RabbitMQ, multi-container networks, container reuse, and Respawn database reset. Use when writing integration tests that need real databases, caches, or message queues instead of mocks.

192 days ago

dotnet-backend-patterns

mowgliphmowgliph

Master C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.

192 days ago

dotnet-tdd

fiatkongenfiatkongen

Use when implementing ASP.NET Core + EF Core features or bugfixes with xUnit + NSubstitute tests, before writing implementation code.

192 days ago

dotnet-backend-patterns

JuanJoseGonGiJuanJoseGonGi

Master C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.

192 days ago

dotnet-backend-patterns

haniakrim21haniakrim21

Master C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.

192 days ago

dotnet-backend-patterns

jmblabjmblab

Master C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.

192 days ago