コード例 #1
0
        public UnitTestControllers()
        {
            visitorService = serviceCreator.CreateVisitorService(null);
            groupService   = serviceCreator.CreateGroupService(null);
            checkPoint     = serviceCreator.CreateCheckPointService(null);
            nationalities  = serviceCreator.CreateNationalityService(null);
            genders        = serviceCreator.CreateGenderService(null);

            visitorController = new VisitorController(groupService, checkPoint, nationalities, genders);
            groupController   = new GroupController(groupService, checkPoint, nationalities, genders);
            anketaController  = new AnketaController(anketaService, groupService, checkPoint, nationalities, genders);

            InitModel();
        }
コード例 #2
0
        public IntegratedTest()
        {
            database      = new IdentityUnitOfWork(CONNECT);
            xmlDispatcher = database.XMLDispatchManager;

            xmlDispatcherService = new XMLDispatcher(database);
            visitorService       = serviceCreator.CreateVisitorService(CONNECT);
            //groupService = serviceCreator.CreateGroupService(CONNECT);
            groupService  = new GroupService(database);
            checkPoint    = serviceCreator.CreateCheckPointService(CONNECT);
            nationalities = serviceCreator.CreateNationalityService(CONNECT);
            genders       = serviceCreator.CreateGenderService(CONNECT);
            userService   = serviceCreator.CreateUserService(CONNECT);
            reportService = serviceCreator.CreateReport(CONNECT);

            accountController  = new AccountController(userService);
            visitorController  = new VisitorController(groupService, checkPoint, nationalities, genders);
            groupController    = new GroupController(groupService, checkPoint, nationalities, genders);
            anketaController   = new AnketaController(anketaService, groupService, checkPoint, nationalities, genders);
            operatorController = new OperatorController(userService);
            reporterController = new ReportController(reportService);
        }