Example #1
0
        public void DisposeAfterPublish()
        {
            _pipeline
            .Awaiting(pipeline => pipeline.Publish(_notification, CancellationToken))
            .Should().NotThrow();

            _pipeline
            .Invoking(pipeline => pipeline.Dispose())
            .Should().NotThrow();
        }