Tethos.Moq 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Tethos.Moq --version 1.0.0                
NuGet\Install-Package Tethos.Moq -Version 1.0.0                
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="Tethos.Moq" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Tethos.Moq --version 1.0.0                
#r "nuget: Tethos.Moq, 1.0.0"                
#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.
// Install Tethos.Moq as a Cake Addin
#addin nuget:?package=Tethos.Moq&version=1.0.0

// Install Tethos.Moq as a Cake Tool
#tool nuget:?package=Tethos.Moq&version=1.0.0                

Tethos is automated auto-mocking system which utilizes Castle.Windsor as backbone for working with mocked dependencies used during unit testing. It is test framework agnostic.

Why?

Consider following example:

public class SystemUnderTest
{
    public SystemUnderTest(IMockA mockA, IMockB mockB, IMockC mockC, IMockD mockD)
    {
        ...
    }

    public int Do()
    {
        MockA.Do();
        MockB.Do();
        MockC.Do();
        MockD.Do();
    }
}

in order to resolve dependencies for SystemUnderTest we will need to write following unit test:

[Fact]
public void Test()
{
    var sut = new SystemUnderTest(
        new MockA(new UnknownA(new UnknownB(), new UnknownC()))
        new MockB(new UnknownC())
        new MockC(new UnknownD())
        new MockD(new UnknownD())
    );

    ...
}

with Tethos.Moq you will just need to:

[Fact]
public void Test()
{
    var sut = Container.Resolve<SystemUnderTest>();

    ...
}

This saves time to manually injecting mocked dependencies leaving you more time to focus on test themselves.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.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.1.1 211 11/7/2023
2.1.0 168 9/11/2023
2.0.0 202 7/20/2023
1.6.2 6,688 4/5/2022
1.6.1 889 3/30/2022
1.6.0 611 3/11/2022
1.5.3 734 2/28/2022
1.5.2 870 2/6/2022
1.5.1 863 1/30/2022
1.5.0 830 1/30/2022
1.4.6 1,014 1/27/2022
1.4.5 1,134 1/18/2022
1.4.4 853 1/10/2022
1.4.3 402 12/29/2021
1.4.2 759 12/16/2021
1.4.1 655 12/11/2021
1.4.0 718 12/7/2021
1.3.0 456 11/30/2021
1.2.3 5,354 11/24/2021
1.2.2 603 11/2/2021
1.2.1 373 10/28/2021
1.2.0 986 10/21/2021
1.1.0 415 10/20/2021
1.0.4 405 10/15/2021
1.0.3 509 10/14/2021
1.0.2 388 10/8/2021
1.0.1 376 10/8/2021
1.0.0 381 9/2/2021