Exemplo n.º 1
0
            public void Initialize()
            {
                CreateTestFeatureSwitch();

                // Mock out the HttpContext - mock uses our local cookie collection.
                var httpContextMock = CreateHttpContextMock();

                // Create new FemahContext using mock HttpContext.
                _femahContext = new FemahContext(httpContextMock.Object);
            }
            public void Initialize()
            {
                // Initialise cookie collection.
                _cookies = new HttpCookieCollection();

                // Mock out the HttpContext - mock uses our local cookie collection.
                var httpContextMock = CreateContextMock();

                // Create new FemahContext using mock HttpContext.
                _femahContext = new FemahContext(httpContextMock.Object);
            }