Skip to content

inbarbarkai/AddUp.FakeRabbitMQ

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AddUp.FakeRabbitMQ

Build Quality Gate Status Coverage NuGet Dependabot Status

Important Notice

On 2020/10/04, and starting with version 1.2.3, AddUp.RabbitMQ.Fakes was renamed to AddUp.FakeRabbitMQ. This concerns:

However, the root namespace remains (for compatibility purpose) AddUp.RabbitMQ.Fakes.

I deemed this renaming necessary as the Fakes suffix collides with Microsoft Fakes product. Because the assembly name ends with .Fakes, several unit-test related tools consider it not to be a real assembly but rather something generated by Microsoft Fakes.

About

AddUp.FakeRabbitMQ is a fork of https://github.com/Parametric/RabbitMQ.Fakes. Thanks to the folks over there for their work without which our own version would have probably never seen the light.

AddUp.FakeRabbitMQ provides fake implementations of the RabbitMQ.Client interfaces (see https://www.nuget.org/packages/RabbitMQ.Client for the nuget package and https://github.com/rabbitmq/rabbitmq-dotnet-client for its source code). They are intended to be used for testing so that unit tests that depend on RabbitMQ can be executed fully in memory withouth needing an external RabbitMQ server.

AddUp.FakeRabbitMQ builds on top of the original project:

  • Targets .NET Standard 2.0
  • Supports Default, Direct, Topic and Fanout exchange types.
    • NB: Headers exchange type is not supported; however, it won't throw (it is implemented the same way as the Fanout type)

History

  • Renamed from AddUp.RabbitMQ.Fakes to AddUp.FakeRabbitMQ.
  • BUGFIX: Closing a connection could throw if owned models were closed before.
  • Updated to RabbitMQ.Client to version 5.2.0
  • First released version of AddUp.RabbitMQ.Fakes. Based on RabbitMQ.Client version 5.1.2
  • NB: the version starts at 1.2.0 so as not to collide with previous internal versions.

License

This work is provided under the terms of the MIT License.

About

Fakes used for testing RabbitMQ

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%