public async Task Should_throw_exception_if_app_not_found() { var command = new CreateContent(); var context = new CommandContext(command, commandBus); await Assert.ThrowsAsync <InvalidOperationException>(() => sut.HandleAsync(context)); }
public async Task Should_throw_exception_if_app_not_found() { httpContext.Features.Set <IAppFeature>(new AppResolver.AppFeature(null)); var command = new CreateContent(); var context = new CommandContext(command, commandBus); await Assert.ThrowsAsync <InvalidOperationException>(() => sut.HandleAsync(context)); }