I have controller with following action :
[Topic("pubsub", "test")]
[HttpPost("test")]
public async Task Post([FromBody] CustomDto customDto)
{
await _customService.Execute(customDto, CancellationToken.None);
}
I want to test it via mocking something. Couldn't find any useful resource how to do it. The goal is be able to send CustomDto
to this action and further execution.