Skip to content

thancock14/RabbitMQ.Fakes.DotNetStandard

 
 

Repository files navigation

NOTE: This repo is a fork of Parametric/RabbitMQ.Fakes. RabbitMQ.Fakes is a .NET Framework 4.5 library, whereas RabbitMQ.Fakes.DotNetStandard is the .NET Standard 2.0 version of RabbitMQ.Fakes.

RabbitMQ.Fakes.DotNetStandard

RabbitMQ.Fakes.DotNetStandard is a .NET Standard 2.0 library that contains fake implementations of the RabbitMQ.Client interfaces. These are intended to be used for testing so that unit tests who depend on RabbitMQ can be executed fully in memory withouth the dependence on an external RabbitMQ server.

Requirements

  • .NET Core 2.0 OR .NET Framework 4.6.1
  • Nuget Package Manger

Projects

  • RabbitMQ.Fakes.DotNetStandard: Implementation of the fakes in .NET Standard 2.0
  • RabbitMQ.Fakes.DotNetCoreTests: Unit tests around the fake implementation using .NET Core 2.0

Fakes

  • RabbitServer: In memory representation of a Rabbit server. This is where the Exchanges / Queues / Bindings / Messages are held.
  • FakeConnectionFactory: Fake implementation of the RabbitMQ ConnectionFactory. Returns a FakeConnection when the .CreateConnection() method is called
  • FakeConnection: Fake implementation of the RabbitMQ IConnection. Returns a FakeModel when the .CreateModel() method is called
  • FakeModel: Fake implementation of the RabbitMQ IModel. Interacts with the RabbitServer instance passed into the FakeConnectionFactory.

Sample Usage

See the UseCases in the RabbitMQ.Fakes.DotNetCoreTests project for sample usage

About

Fakes used for testing RabbitMQ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%