MoqLib.Grpc.Testing.SourceGenerator 2.0.0

dotnet add package MoqLib.Grpc.Testing.SourceGenerator --version 2.0.0
                    
NuGet\Install-Package MoqLib.Grpc.Testing.SourceGenerator -Version 2.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="MoqLib.Grpc.Testing.SourceGenerator" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MoqLib.Grpc.Testing.SourceGenerator" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="MoqLib.Grpc.Testing.SourceGenerator" />
                    
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 MoqLib.Grpc.Testing.SourceGenerator --version 2.0.0
                    
#r "nuget: MoqLib.Grpc.Testing.SourceGenerator, 2.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.
#:package MoqLib.Grpc.Testing.SourceGenerator@2.0.0
                    
#: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=MoqLib.Grpc.Testing.SourceGenerator&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=MoqLib.Grpc.Testing.SourceGenerator&version=2.0.0
                    
Install as a Cake Tool

MoqLib.Grpc.Testing.SourceGenerator

This package generates Mock setup methods using Source Generators to make gRPC tests easier. The source code generated makes use of the following dependencies:

Setup

Make sure this packages are added to the test project:

dotnet add package MoqLib.Grpc.Testing.SourceGenerator
dotnet add package Moq
dotnet add package Grpc.Core.Testing
dotnet add package Google.Api.Gax.Grpc.Testing
dotnet add System.Linq.Async

Add Protobuf property like Grpc.Tools recommendations. Example:

<ItemGroup>
    <Protobuf Include="./Protos/orders-service.proto" Link="Protos/orders-service.proto" />
    <Protobuf Include="./Protos/products-service.proto" Link="Protos/products-service.proto" />
</ItemGroup>

Build de project and have fun!

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.1

    • No dependencies.

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.0 1,205 2/15/2023
1.6.0 1,027 2/15/2023
1.3.0 1,250 2/12/2023