Ejemplo n.º 1
0
        public void CanGenerateFormFromXsdFile()
        {
            //asign
            var formManager = new FormManager(new Panel());

            //action
            formManager.GenerateFormFromXsdFile("DocumentumArchivageSettings.xsd");

            //assert
        }
Ejemplo n.º 2
0
        public void CanUseIsFormValid()
        {
            //asign
            var formManager = new FormManager(new Panel());

            //action
            formManager.IsFormValid();

            //assert
        }
Ejemplo n.º 3
0
        public void CanUseSaveFormToXmlFile()
        {
            //asign
            var formManager = new FormManager(new Panel());
            var stream = new MemoryStream();

            //action
            formManager.GenerateFormFromXsdFile("DocumentumArchivageSettings.xsd");
            formManager.UpdateFormFromXml("DocumentumArchivageSettings.xml");
            formManager.SaveFormToXmlFile(stream);

            //assert
        }
Ejemplo n.º 4
0
 private void MainFormLoad(object sender, EventArgs e)
 {
     _formManager = new FormManager(mainPanel);
 }