Exemplo n.º 1
0
        public void TestCleanup()
        {
            _simplTestContext = null;

            _controller.Dispose();
            _controller = null;

            ShimCurrentSubscriber.GetInstance = null;

            _shimsContext.Dispose();
            _shimsContext = null;
        }
Exemplo n.º 2
0
        public void TestInitialize()
        {
            // Create ShimsContext
            _shimsContext = ShimsContext.Create();

            ShimCurrentSubscriber.GetInstance = () => new ShimCurrentSubscriber();

            _controller = DependencyResolver.Current.GetService<ONTController>();

            _simplTestContext = new SIMPLTestContext();
        }