public static IExecuteCommandHandler With(this IExecuteCommandHandler handler, Container <string> commands) { handler.GetRegistrationOptions().Returns(new ExecuteCommandRegistrationOptions { Commands = commands }); handler.Handle(Arg.Any <ExecuteCommandParams>(), Arg.Any <CancellationToken>()).Returns(Unit.Value); return(handler); }