Пример #1
0
        public void do_not_deliver_before_should_add_expected_publish_option()
        {
            // arrange
            var options  = new PublishOptions();
            var tomorrow = DateTimeOffset.UtcNow.AddDays(1d);

            // act
            options.DoNotDeliverBefore(tomorrow);

            // assert
            options.Get <DoNotDeliverBefore>().When.Should().Be(tomorrow.UtcDateTime);
        }