public async Task Should_be_able_to_publish_struct() { var message = DateTime.UtcNow; var messageType = typeof(DateTime); await pubSub.PublishAsync(message, messageType, configure); #pragma warning disable 4014 pubSub.Received() .PublishAsync( Arg.Is(message), Arg.Is(configure), Arg.Any <CancellationToken>() ); #pragma warning restore 4014 }