public void SetUp() { _serviceLocator = DefaultServiceLocator.Create(); _stubColumnDefinition = new StubColumnDefinition(); _stubValueColumnDefinition = new StubValueColumnDefinition(); _wcagHelperStub = MockRepository.GenerateStub <WcagHelper>(); }
public virtual void SetUp() { _wcagHelperMock = new WcagHelperMock(); WcagHelper.SetInstance(_wcagHelperMock); SetUpContext(); SetUpPage(); }
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; }
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; }
public virtual void TearDown() { WcagHelper.SetInstance(null); HttpContextHelper.SetCurrent(null); WebConfigurationMock.Current = null; }
public void SetUp() { _serviceLocator = DefaultServiceLocator.Create(); _wcagHelperStub = MockRepository.GenerateStub <WcagHelper> (); }
public virtual void TearDown() { TearDownPage(); TearDownContext(); WcagHelper.SetInstance(null); }