Esempio n. 1
0
        public void DisposeScopeProvider()
        {
            // Setup
            var called = false;
            Action action = () => called = true;
            var scopeProvider = new ScopeProvider(action);

            // Execute
            scopeProvider.Dispose();

            // Assert
            Assert.IsTrue(called);
        }
Esempio n. 2
0
        public void DisposeScopeProvider()
        {
            // Setup
            var    called        = false;
            Action action        = () => called = true;
            var    scopeProvider = new ScopeProvider(action);

            // Execute
            scopeProvider.Dispose();

            // Assert
            Assert.IsTrue(called);
        }