public void Setup()
        {
            _autofixture = new Fixture();
              new DummyModelCustomisation().Customize(_autofixture);

              _model = _autofixture.Create<DummyModel>();
              _element = new Mock<ZptElement>() { CallBase = true };
              _context = Mock.Of<RenderingContext>(x => x.Element == _element.Object && x.TalModel == _model);

              _element.Setup(x => x.Remove());
              _element.Setup(x => x.RemoveAllChildren());
              _element.Setup(x => x.ReplaceWith(It.IsAny<string>(), It.IsAny<bool>())).Returns(new ZptElement[0]);
              _element.Setup(x => x.ReplaceChildrenWith(It.IsAny<string>(), It.IsAny<bool>()));

              _sut = new ContentOrReplaceAttributeHandler();
        }
        public void Setup()
        {
            _autofixture = new Fixture();
              new RenderingContextCustomisation().Customize(_autofixture);

              _context = _autofixture.Create<RenderingContext>();
              _model = (DummyModel) _context.TalModel;

              _sut = new DefineAttributeHandler();
        }
        public void Setup()
        {
            _autofixture = new Fixture();
              new DummyModelCustomisation().Customize(_autofixture);

              _model = _autofixture.Create<DummyModel>();
              _element = new Mock<ZptElement>() { CallBase = true };
              _context = Mock.Of<RenderingContext>(x => x.Element == _element.Object && x.TalModel == _model);

              _sut = new AttributesAttributeHandler();
        }
        public void Setup()
        {
            _autofixture = new Fixture();
              new DummyModelCustomisation().Customize(_autofixture);

              _model = _autofixture.Create<DummyModel>();
              _element = new Mock<ZptElement>() { CallBase = true };
              _parent = new Mock<ZptElement>() { CallBase = true };
              _clone = new Mock<ZptElement>() { CallBase = true };
              _context = Mock.Of<RenderingContext>(x => x.Element == _element.Object && x.TalModel == _model);

              _element.Setup(x => x.Remove());
              _element.Setup(x => x.Clone()).Returns(_clone.Object);
              _element.Setup(x => x.GetParentElement()).Returns(_parent.Object);
              _parent.Setup(x => x.InsertBefore(It.IsAny<ZptElement>(), _clone.Object)).Returns(_clone.Object);

              _sut = new RepeatAttributeHandler();
        }