public DifferentTypedGlassControllerTestHarness()
 {
     SitecoreContext                   = Substitute.For <ISitecoreContext>();
     RenderingContextWrapper           = Substitute.For <IRenderingContext>();
     HttpContext                       = Substitute.For <HttpContextBase>();
     GlassController                   = new GlassController <ContextStubClass, DataSourceStubClass>(SitecoreContext, RenderingContextWrapper);
     GlassController.ControllerContext = new ControllerContext(HttpContext, new RouteData(), GlassController);
 }
 public SingleTypedGlassControllerTestHarness()
 {
     SitecoreContext         = Substitute.For <ISitecoreContext>();
     GlassHtml               = Substitute.For <IGlassHtml>();
     RenderingContextWrapper = Substitute.For <IRenderingContext>();
     HttpContext             = Substitute.For <HttpContextBase>();
     GlassController         = new GlassController <StubClass>(SitecoreContext, GlassHtml, RenderingContextWrapper, HttpContext);
 }
Beispiel #3
0
 public DifferentTypedGlassControllerTestHarness()
 {
     SitecoreContext         = Substitute.For <ISitecoreContext>();
     GlassHtml               = Substitute.For <IGlassHtml>();
     RenderingContextWrapper = Substitute.For <IRenderingContext>();
     HttpContext             = Substitute.For <HttpContextBase>();
     GlassController         = new GlassController <ContextStubClass, DataSourceStubClass>(SitecoreContext, GlassHtml, RenderingContextWrapper, HttpContext);
 }
Beispiel #4
0
 public void Constructor_Default_CreatsWithoutException()
 {
     //Act
     Context.Create(Substitute.For <Sc.IoC.IDependencyResolver>());
     var controller = new GlassController();
 }
 public SingleTypedGlassControllerTestHarness()
 {
     SitecoreContext = Substitute.For<ISitecoreContext>();
     GlassHtml = Substitute.For<IGlassHtml>();
     RenderingContextWrapper = Substitute.For<IRenderingContext>();
     HttpContext = Substitute.For<HttpContextBase>();
     GlassController = new GlassController<StubClass>(SitecoreContext, GlassHtml, RenderingContextWrapper, HttpContext);
 }
 public void Constructor_Default_CreatsWithoutException()
 {
     //Act
     var controller = new GlassController();
 }
Beispiel #7
0
 public void SelectGlass(GlassController glass)
 {
     SelectedGlass = glass;
     Highlighter.MoveTo(glass);
 }
 public SingleTypedGlassControllerTestHarness()
 {
     SitecoreContext = Substitute.For<ISitecoreContext>();
     RenderingContextWrapper = Substitute.For<IRenderingContext>();
     HttpContext = Substitute.For<HttpContextBase>();
     GlassController = new GlassController<StubClass>(SitecoreContext, RenderingContextWrapper);
     GlassController.ControllerContext = new ControllerContext(HttpContext, new RouteData(), GlassController);
 }
 public DifferentTypedGlassControllerTestHarness()
 {
     SitecoreContext = Substitute.For<ISitecoreContext>();
     GlassHtml = Substitute.For<IGlassHtml>();
     RenderingContextWrapper = Substitute.For<IRenderingContext>();
     HttpContext = Substitute.For<HttpContextBase>();
     GlassController = new GlassController<ContextStubClass, DataSourceStubClass>(SitecoreContext, GlassHtml, RenderingContextWrapper, HttpContext);
 }