コード例 #1
0
 public void SetUp()
 {
     _serviceLocator            = DefaultServiceLocator.Create();
     _stubColumnDefinition      = new StubColumnDefinition();
     _stubValueColumnDefinition = new StubValueColumnDefinition();
     _wcagHelperStub            = MockRepository.GenerateStub <WcagHelper>();
 }
コード例 #2
0
 public virtual void SetUp()
 {
     _wcagHelperMock = new WcagHelperMock();
     WcagHelper.SetInstance(_wcagHelperMock);
     SetUpContext();
     SetUpPage();
 }
コード例 #3
0
        public BocColumnRendererArrayBuilder(BocColumnDefinition[] columnDefinitions, IServiceLocator serviceLocator, WcagHelper wcagHelper)
        {
            ArgumentUtility.CheckNotNullOrEmpty("columnDefinitions", columnDefinitions);
            ArgumentUtility.CheckNotNull("serviceLocator", serviceLocator);
            ArgumentUtility.CheckNotNull("wcagHelper", wcagHelper);

            _columnDefinitions = columnDefinitions;
            _serviceLocator    = serviceLocator;
            _wcagHelper        = wcagHelper;
        }
コード例 #4
0
        public virtual void SetUp()
        {
            _wcagHelperMock = new WcagHelperMock();
            WcagHelper.SetInstance(_wcagHelperMock);

            _page = new Page();

            _namingContainer    = new NamingContainerMock();
            _namingContainer.ID = "NamingContainer";
            _page.Controls.Add(_namingContainer);

            _invoker = new ControlInvoker(_namingContainer);

            var context = HttpContextHelper.CreateHttpContext("GET", "/", "");

            HttpContextHelper.SetCurrent(context);
            HttpBrowserCapabilities browser = new HttpBrowserCapabilities();

            browser.Capabilities = new Hashtable();
            browser.Capabilities.Add("browser", "IE");
            browser.Capabilities.Add("majorversion", "7");
            context.Request.Browser = browser;
        }
コード例 #5
0
 public virtual void TearDown()
 {
     WcagHelper.SetInstance(null);
     HttpContextHelper.SetCurrent(null);
     WebConfigurationMock.Current = null;
 }
 public void SetUp()
 {
     _serviceLocator = DefaultServiceLocator.Create();
     _wcagHelperStub = MockRepository.GenerateStub <WcagHelper> ();
 }
コード例 #7
0
 public virtual void TearDown()
 {
     TearDownPage();
     TearDownContext();
     WcagHelper.SetInstance(null);
 }