public async Task Get_DeckThumbnail_WhenCalled_With_A_DeckId_Should_Return_FileContentResult() { // Arrange const int deckId = 980; _mediator.Send(Arg.Any <IRequest <DeckThumbnailImagePathQueryResult> >()).Returns(new DeckThumbnailImagePathQueryResult { ContentType = "image/jpeg", Image = new byte[] { 1, 2, 3, 4, 5 } }); // Act var result = await _sut.DeckThumbnail(deckId); // Assert result.Should().BeOfType <FileContentResult>(); }