Best way to mix Akka.Net and Specflow ReqNroll #7226
Unanswered
andre-steenbergen
asked this question in
Q&A
Replies: 1 comment
-
Oh and also the dependency config: It is here where I register my MessageRouter and a Saga actor, checking persisted events and raising commands of it's own.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I used to test with TestKit and BDDfy, but BDDFy seems like an abandoned project now, and I have been missing hooks from the start. At this moment I have a working test package. But I am wondering if this is the best way to go.
I am using
Reqnroll.Microsoft.Extensions.DependencyInjection
to register a scoped HostBuilder.In the hooks I am checking the When steps:
where I am persisting all events gathered in Given steps. and start the system
followed by:
So I know the Akka Host is closed again.
In my step definitions I then use the dependency injector from ReqnRoll to inject and register the service provider:
What do you think of this angle of approach?
Is there something I am missing?
Beta Was this translation helpful? Give feedback.
All reactions