I'm trying to write some tests but I'm not sure how to handle the arguments for setting up my moq mock. Can anyone suggest how I can complete this line of code correctly? Many thanks,
My moq code line
The parameter is of type shown below for the Returns(...) which I'm not sure how to handle.
Parameter intellisense
The method is shown below that I'm trying to moq out.
The method definition
public static async Task<CommandResult> SendSupportAsync(this IBus bus, Command command, bool withLogging = true)
UPDATE
I've tried the suggestion, I've added the mocked object and set up the return but the compiler gives the following error:
An expression tree may not contain a call or invocation that uses optional arguments