Esempio n. 1
0
        private void btnALL_Click(object sender, RoutedEventArgs e)
        {
            if (isRunning)
            {
                Global.LstInfo = new System.Collections.ObjectModel.ObservableCollection <string>();
                Global.LstInfo.Add("已经有测试用例在执行!");
                return;
            }

            isRunning = true;
            //德雅管理后台
            DentureLoginModule.LoginAllTest();
            HospitalModule.HospitalAllTest();
            DoctorModule.DoctorAllTest();
            DentureModule.DentureAllTest();
            RoleModule.RoleAllTest();
            DoctorModule.DoctorAllTest();

            //Dentlab 客户端
            DoctorLoginModule.LoginAllTest();
            FactoryHospitalModule.HospitalAllTest();
            TechnicianListModule.TechnicianAllTest();
            UploadReportModule.DoctorAllTest();

            isRunning = false;

            this.Activate();
        }
Esempio n. 2
0
        /// <summary>
        /// 用户管理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnUser_Click(object sender, RoutedEventArgs e)
        {
            if (isRunning)
            {
                Global.LstInfo = new System.Collections.ObjectModel.ObservableCollection <string>();
                Global.LstInfo.Add("已经有测试用例在执行!");
                return;
            }

            isRunning = true;
            DoctorModule.DoctorAllTest();
            isRunning = false;

            this.Activate();
        }
Esempio n. 3
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            ModelValidatorProviders.Providers.Clear();
            NinjectModule patientModule     = new PatientModule();
            NinjectModule doctorModule      = new DoctorModule();
            NinjectModule appointmentModule = new AppointmentModule();
            NinjectModule userModule        = new UserModule();
            NinjectModule serviceModule     = new ServiceModule("DefaultConnection");
            var           kernel            = new Ninject.StandardKernel(patientModule, doctorModule, appointmentModule, userModule, serviceModule);

            DependencyResolver.SetResolver(new NinjectDependencyResolver(kernel));
        }
Esempio n. 4
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            NinjectModule serviceModule    = new ServiceModule("DefaultConnection");
            NinjectModule roleModule       = new RoleModule();
            NinjectModule userModule       = new UserModule();
            NinjectModule patientModule    = new PatientModule();
            NinjectModule doctorModule     = new DoctorModule();
            NinjectModule specialityModule = new SpecialityModule();
            NinjectModule recordModule     = new RecordModule();

            var kernel = new StandardKernel(serviceModule, roleModule, userModule, patientModule, doctorModule, specialityModule, recordModule);

            DependencyResolver.SetResolver(new NinjectDependencyResolver(kernel));
        }