UpdateFormFromXml() private method

Updates values in XForm from given Xml file.
private UpdateFormFromXml ( string fileName ) : void
fileName string Path to Xml file contains data.
return void
コード例 #1
0
        public void CanUpdateFormFromXml()
        {
            //asign
            var formManager = new FormManager(new Panel());

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

            //assert
        }
コード例 #2
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
        }