Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Create EventFlow.Bdd for doing BDD testing #137

Closed
wants to merge 28 commits into from
Closed

WIP: Create EventFlow.Bdd for doing BDD testing #137

wants to merge 28 commits into from

Conversation

rasmus
Copy link
Member

@rasmus rasmus commented Sep 26, 2015

Requirements

  • Should be based only on decorators making it possible for developers to use e.g. any event store they desire for testing
  • Be really, really easy to read

Nice to have

  • Be possible to add to production code without interfering too much

Current suggestion

// Configure EventFlow
var resolver = EventFlowOptions.New
    .AddDefaults(EventFlowTestHelpers.Assembly)
    .TestWithBdd()
    .CreateResolver();

// Write test
resolver.Scenario()
    .Given(c => c
        .Event<PingEvent>()
        .Event<DomainErrorAfterFirstEvent>())
    .When(c => c
        .Command<DomainErrorAfterFirstCommand>())
    .Then(c => c
        .Event<PingEvent>(e => true));

@rasmus
Copy link
Member Author

rasmus commented Sep 28, 2015

Have a look at https://abdullin.com/tags/cqrs/

# Conflicts:
#	Source/EventFlow/Extensions/DisposableExtensions.cs
# Conflicts:
#	EventFlow.sln
@rasmus rasmus changed the title Create EventFlow.Bdd for doing BDD testing WIP: Create EventFlow.Bdd for doing BDD testing Sep 11, 2017
@rasmus
Copy link
Member Author

rasmus commented Jun 10, 2021

Too old

@rasmus rasmus closed this Jun 10, 2021
@rasmus rasmus deleted the bdd branch June 10, 2021 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant