public void Initialize()
 {
     model = new ProjectModel();
     model.LoadXml(initialText);
     view = Substitute.For<IXmlView>();
     new XmlPresenter(model, view);
 }
Exemplo n.º 2
0
 public void Initialize()
 {
     model = new ProjectModel();
     model.LoadXml(initialText);
     view = Substitute.For <IXmlView>();
     new XmlPresenter(model, view);
 }
Exemplo n.º 3
0
        public void SetUp()
        {
            doc = new ProjectModel();
            doc.LoadXml(NUnitProjectXml.NormalProject);
            model = new PropertyModel(doc);
            model.ActiveConfigName = "Release";

            view = Substitute.For <IPropertyView>();
            view.ConfigList.Returns(new SelectionStub("ConfigList"));
            view.ProcessModel.Returns(new SelectionStub("ProcessModel"));
            view.DomainUsage.Returns(new SelectionStub("DomainUsage"));
            view.Runtime.Returns(new SelectionStub("Runtime"));
            view.RuntimeVersion.Returns(new SelectionStub("RuntimeVersion"));
            view.AssemblyList.Returns(new SelectionStub("AssemblyList"));

            new PropertyPresenter(model, view);
            view.Selected += Raise.Event <ActionHandler>();
        }
        public void SetUp()
        {
            doc = new ProjectModel();
            doc.LoadXml(NUnitProjectXml.NormalProject);
            model = new PropertyModel(doc);
            model.ActiveConfigName = "Release";

            view = Substitute.For<IPropertyView>();
            view.ConfigList.Returns(new SelectionStub("ConfigList"));
            view.ProcessModel.Returns(new SelectionStub("ProcessModel"));
            view.DomainUsage.Returns(new SelectionStub("DomainUsage"));
            view.Runtime.Returns(new SelectionStub("Runtime"));
            view.RuntimeVersion.Returns(new SelectionStub("RuntimeVersion"));
            view.AssemblyList.Returns(new SelectionStub("AssemblyList"));

            new PropertyPresenter(model, view);
            view.Selected += Raise.Event<ActionHandler>();
        }