TinyFakeHost 0.0.0.1

A tiny host that runs backend web services and fakes their responses for your app test

There is a newer version of this package available.
See the version list below for details.
Install-Package TinyFakeHost -Version 0.0.0.1
dotnet add package TinyFakeHost --version 0.0.0.1
<PackageReference Include="TinyFakeHost" Version="0.0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TinyFakeHost --version 0.0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TinyFakeHost, 0.0.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install TinyFakeHost as a Cake Addin
#addin nuget:?package=TinyFakeHost&version=0.0.0.1

// Install TinyFakeHost as a Cake Tool
#tool nuget:?package=TinyFakeHost&version=0.0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Initial Release

example:

[SetUp]
public void SetUp()
{
   _tinyFakeHost = new TinyFakeHost("http://localhost:5432/someService/v1/");
   _faker = _tinyFakeHost.GetFaker();
   _tinyFakeHost.Start();
}

[Test]
public void Your_Test_Method()
{
   // your test code . . . .

   _faker.Fake(f => f
       .IfRequest("/vendors/9876-5432-1098-7654/products")
       .WithParameters("type=desk&manufactureYear=2013")
       .ThenReturn(products)
   );

   _faker.Fake(f => f
       .IfRequest("/vendors")
       .ThenReturn(vendors)
   );

   // your test code . . . .
}

[TearDown]
public void TearDown()
{
   _tinyFakeHost.Stop();
   _tinyFakeHost.Dispose();
}

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.6 343 6/1/2020
2.0.0-alpha 427 3/19/2019
0.1.82-alpha 959 5/30/2016
0.1.70-alpha 554 5/28/2016
0.1.62 3,438 9/8/2015
0.1.0 994 3/16/2015
0.0.0.1 2,059 2/10/2015
Show less