Skip to content

Fakes used for testing RabbitMQ

Notifications You must be signed in to change notification settings

soumen1102/RabbitMQ.Fakes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RabbitMQ.Fakes

RabbitMQ.Fakes is a 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 4.5
  • Nuget Package Manger

Projects

  • RabbitMQ.Fakes: Implementation of the fakes
  • RabbitMQ.Fakes.Tests: Unit tests around the fake implementation

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.Tests project for sample usage

About

Fakes used for testing RabbitMQ

Resources

Stars

Watchers

Forks