public UITestLogic( Communi.CommuniSoft soft ) { this.Soft = soft; this.Soft.CommuniPortManager.CommuniPortReceivedEvent += new CommuniPortReceivedEventHandler(CommuniPortManager_CommuniPortReceivedEvent); this.Soft.TaskManager.Timeout = TimeSpan.FromSeconds(1); this.BuildHardware(); this.AddTestTask(); }
public UITestLogic() { DeviceDefineBuilderBase d = new XmlDeviceDefineBuild( "xml\\devicedefine.xml" ); HardwareBuilderBase h = new XmlHardwareBuilder("xml\\hardware.xml"); TaskFactoryCollectionBuilder t = new XmlTaskFactoryCollectionBuilder("xml\\task.xml"); ListenBuilderBase l = new XmlListenBuilder("xml\\listenport.xml"); CommuniSoftBuilder b = new CommuniSoftBuilder(d, h, t, l); //Soft = b.Build(); b.Build(CommuniSoft.Default); Soft = CommuniSoft.Default; }