public async Task Create_should_create_domain_object() { var context = CreateContextForCommand(new CreateRule { Trigger = ruleTrigger, Action = ruleAction }); await TestCreate(rule, async _ => { await sut.HandleAsync(context); }); }
public async Task Should_not_invoke_enricher_for_other_result() { var command = CreateCommand(new MyCommand()); var context = CreateContextForCommand(command); context.Complete(12); await sut.HandleAsync(context); A.CallTo(() => ruleEnricher.EnrichAsync(A <IEnrichedRuleEntity> ._, requestContext)) .MustNotHaveHappened(); }