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.

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();
}

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.0-alpha 230 3/19/2019
0.1.82-alpha 694 5/30/2016
0.1.70-alpha 312 5/28/2016
0.1.62 1,614 9/8/2015
0.1.0 728 3/16/2015
0.0.0.1 1,596 2/10/2015
Show less