예제 #1
0
        public void OnceTestHandlerAsync_HasCorrectTimeout()
        {
            var handler = new OnceTestHandlerAsync();
            var reader  = HandlerMetadata.ReadExactlyOnce(handler);

            reader.GetTimeOut().ShouldBe(42);
        }
예제 #2
0
        public void OnceTestHandlerAsync_DoesHaveExactlyOnce()
        {
            var handler = new OnceTestHandlerAsync();
            var reader  = HandlerMetadata.ReadExactlyOnce(handler);

            reader.Enabled.ShouldBeTrue();
        }