GithubHelp home page GithubHelp logo

stevewgh / nservicebus.transport.inmemory Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 53 KB

An InMemory Transport for NServiceBus 7.x designed to let you test an endpoint from a blank slate each time.

License: MIT License

C# 100.00%

nservicebus.transport.inmemory's People

Contributors

stevewgh avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

traveledge

nservicebus.transport.inmemory's Issues

Test Runners keep SharedStorage alive between tests

When running multiple tests which create and tear down endpoints that use the InMemory transport, an endpoint can be shutdown whilst there are still messages contained within the endpoints receiving queue. The next test can then consume the events without realising that they were destined for a previous test.

For this to occur the following must be true:

  • the test runner must create a shared AppDomain which keeps the SharedStorage singleton alive
  • the endpoints used in different tests must have the same name

Instead of relying on the AppDomain tear down to clean up, we should explicitly clean the SharedStorage when the MessagePump is asked to stop.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.