Comments (6)
I would not consider this as any thing related to the persistence. If you want to test your saga - you need to use test harnesses provided by MassTransit.
from masstransit.eventstoreintegration.
@pblachut if you want to preinitialize your saga in integration test then you probably have to publish your messages through MT. This will add events to your saga repository stream.
from masstransit.eventstoreintegration.
Regarding point no 2: I publish message on the bus which which should generate transition to state 2. It`s integration test and saga is not the only thing.
from masstransit.eventstoreintegration.
This is how you test Automatonymous sagas:
https://github.com/MassTransit/MassTransit/blob/develop/src/MassTransit.AutomatonymousIntegration.Tests/Testing_Specs.cs
But you do not need to test with persistence unless you absolutely need to, this will involve embedded ES and it will become too slow. In-memory persistence is just fine to test the saga logic.
from masstransit.eventstoreintegration.
But looking at your initial post again (sorry I was reading from mobile) I can conclude that the stream name does not match, you can also check there.
from masstransit.eventstoreintegration.
Thanks for your response. Stream name was good, problem is in the state of the bus.
I have changed my test to setup SUT by send all messages on the bus (instead manually persistance saga state to ES). It is not perfect situation (in the test I check handling of two messages) but based on links which you have sent it will be hard to get better results. Thanks!
from masstransit.eventstoreintegration.
Related Issues (6)
- .NET Core Build + Nuget Package HOT 6
- Migrate to MassTransit v6.0.2 HOT 6
- Allow customized serializer settings
- System.TypeLoadException: Method 'SendQuery' in type 'MassTransit.EventStoreIntegration.Saga.EventStoreSagaRepository`1' from assembly 'MassTransit.EventStoreIntegration, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. HOT 7
- Migrate to Event Store 20.6.0 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from masstransit.eventstoreintegration.