コード例 #1
0
        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
        }