Nabs.Launchpad.Core.Testing 10.0.230

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Nabs.Launchpad.Core.Testing --version 10.0.230
                    
NuGet\Install-Package Nabs.Launchpad.Core.Testing -Version 10.0.230
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Nabs.Launchpad.Core.Testing" Version="10.0.230" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nabs.Launchpad.Core.Testing" Version="10.0.230" />
                    
Directory.Packages.props
<PackageReference Include="Nabs.Launchpad.Core.Testing" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Nabs.Launchpad.Core.Testing --version 10.0.230
                    
#r "nuget: Nabs.Launchpad.Core.Testing, 10.0.230"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Nabs.Launchpad.Core.Testing@10.0.230
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Nabs.Launchpad.Core.Testing&version=10.0.230
                    
Install as a Cake Addin
#tool nuget:?package=Nabs.Launchpad.Core.Testing&version=10.0.230
                    
Install as a Cake Tool

NuGet

Nabs.Launchpad.Core.Testing

Nabs.Launchpad.Core.Testing provides practical test helpers for HTTP mocking, snapshot defaults, localization stubs, and service-registration assertions.

Installation

dotnet add package Nabs.Launchpad.Core.Testing

The Problem

// 1) Every test project recreates HTTP message-handler mocks

// 2) Verify/snapshot settings drift between test suites

// 3) DI registration assertions rely on fragile manual checks

Features

  • HTTP client mocking with MockHttpClientBuilder
  • Test case helpers with TestCase / TestCaseFactory
  • Verify bootstrap using DefaultTestSetting
  • **Localization and service-registration testing helpers`

Usage

DefaultTestSetting.ConfigureVerify();

var httpClient = MockHttpClientBuilder
    .Create("https://api.local")
    .ForRequest(HttpMethod.Get, "/health", HttpStatusCode.OK, new { ok = true })
    .Build();

Configuration

Call DefaultTestSetting.ConfigureVerify() once during test startup for consistent snapshot behavior.

Project Structure

  • MockHttp* - HTTP test doubles
  • TestCase* - scenario/test-data helpers
  • DefaultTestSetting.cs - Verify defaults
  • ServiceCollectionTestExtensions.cs - DI registration assertions

License

Copyright (c) Net Advantage Business Solutions.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.