Skip to content

Question: Running tests results in failure #1

@shahabganji

Description

@shahabganji

Dear @phatboyg

Thanks for such an amazing content around MassTransit. I am trying to write the code as you teach on MassTransit concepts here.

I run dotnet test on this repository and it results in failing tests:

  • Should_publish_order_submitted_event
  • Should_respond_with_acceptance_if_ok

That being said, I am trying to write the sample hand-in-hand with your education stuff, hence created a repository, however the above-mentioned tests do not fail on my repository while they are almost identical to those in Sample-Twitch repo, but another test fails!! ( Should_cancel_order_when_account_closed ).

That repository is almost identical to the one here, and I am wondering why those tests are failing? is there something missed in between about the InMemoryHarness?

BTW, when I remove the .Activity(x => x.OfType<CustomerAccountClosedActivity>()) from here in the OrderStateMachine state definitions the test pass!!

I will be grateful and highly appreciate if you could invest some time to answer my question 🙏

Again, many thanks for sharing your valuable knowledge with all of us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions