Esempio n. 1
0
 public double[] selectExpressionDifficulty()
 {
     try
     {
         IJobSvc svc = (IJobSvc)this.getService(typeof(IJobSvc).Name);
         return(svc.selectExpressionDifficulty());
     }
     catch (ServiceLoadException ex)
     {
         return(null);
     }
 }
Esempio n. 2
0
 public string[] selectExpressionNames()
 {
     try
     {
         IJobSvc svc = (IJobSvc)this.getService(typeof(IJobSvc).Name);
         return(svc.selectExpressionNames());
     }
     catch (ServiceLoadException ex)
     {
         return(null);
     }
 }
Esempio n. 3
0
        public void TestGetService()
        {
            IPersonnelSvc persSvc = (IPersonnelSvc)factory.GetService(typeof(IPersonnelSvc).Name);

            Assert.IsTrue(persSvc is PersonnelSvcIOImpl);

            IJobSvc jobSvc = (IJobSvc)factory.GetService(typeof(IJobSvc).Name);

            Assert.IsTrue(jobSvc is JobSvcIOImpl);

            IFlightSvc flightSvc = (IFlightSvc)factory.GetService(typeof(IFlightSvc).Name);

            Assert.IsTrue(flightSvc is FlightSvcIOImpl);
        }