示例#1
0
 public void TestCreateView01()
 {
     OPCSampleGrpConfigViewFactory oPCSampleGrpConfigViewFactory = OPCSampleGrpConfigViewFactoryFactory.CreateOPCSampleGrpConfigViewFactory01();
     string type = string.Empty;
     string id   = string.Empty;
     IView  view = oPCSampleGrpConfigViewFactory.CreateView(type, id);
 }
示例#2
0
        public void TestCreateView02()
        {
            OPCSampleGrpConfigViewFactory oPCSampleGrpConfigViewFactory = OPCSampleGrpConfigViewFactoryFactory.CreateOPCSampleGrpConfigViewFactory01();
            string type = OPCSampleGrpConfigStart.OPCSAMPLEGRPCONFIGSTARTFRM;
            string id   = string.Empty;
            //Test Procedure Call
            IView view = oPCSampleGrpConfigViewFactory.CreateView(type, id);

            //Post Condition Check
            Assert.IsInstanceOfType(typeof(OPCSampleGrpConfigStart), view);
            Assert.IsNotNull(view.getController());

            //test2
            type = OPCDataSelector.OPCDATASELECTORFRM;
            id   = string.Empty;
            //Test Procedure Call
            TrendingHelper.ConfigureFileHelper.GetInstance().init();
            DAO.Trending.Common.DBConnectionStrings.GetInstance().AddConnectionString(TrendingHelper.ConfigureFileHelper.GetInstance().ConnectionStringConfig);
            view = oPCSampleGrpConfigViewFactory.CreateView(type, id);
            //Post Condition Check
            Assert.IsInstanceOfType(typeof(OPCSampleGrpConfig.View.OPCDataSelector), view);
            Assert.IsNotNull(view.getController());
        }
示例#3
0
        public void TestCreateOPCSampleGrpConfigViewFactory01()
        {
            OPCSampleGrpConfigViewFactory oPCSampleGrpConfigViewFactory = CreateOPCSampleGrpConfigViewFactory01();

            Assert.IsNotNull(oPCSampleGrpConfigViewFactory);
        }
示例#4
0
        public static OPCSampleGrpConfigViewFactory CreateOPCSampleGrpConfigViewFactory01()
        {
            OPCSampleGrpConfigViewFactory oPCSampleGrpConfigViewFactory = new OPCSampleGrpConfigViewFactory();

            return(oPCSampleGrpConfigViewFactory);
        }
示例#5
0
 public void TestOPCSampleGrpConfigViewFactoryConstructor01()
 {
     OPCSampleGrpConfigViewFactory oPCSampleGrpConfigViewFactory = new OPCSampleGrpConfigViewFactory();
 }