TinyFakeHost 0.0.0.1
See the version list below for details.
dotnet add package TinyFakeHost --version 0.0.0.1
NuGet\Install-Package TinyFakeHost -Version 0.0.0.1
<PackageReference Include="TinyFakeHost" Version="0.0.0.1" />
paket add TinyFakeHost --version 0.0.0.1
#r "nuget: TinyFakeHost, 0.0.0.1"
// 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
A tiny host that runs backend web services and fakes their responses for your app test
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- Nancy.Hosting.Self (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.6 | 809 | 6/1/2020 |
2.0.0-alpha | 607 | 3/19/2019 |
0.1.82-alpha | 1,309 | 5/30/2016 |
0.1.70-alpha | 831 | 5/28/2016 |
0.1.62 | 22,596 | 9/8/2015 |
0.1.0 | 1,559 | 3/16/2015 |
0.0.0.1 | 10,817 | 2/10/2015 |
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();
}