示例#1
0
		public void Initialize()
		{
			_mockRepository = new Mock<IRepository<User>>();
			_mockDataContext = new Mock<IAdminDataContext>();
			_mockDataContext.Setup(x => x.Repository<User>()).Returns(_mockRepository.Object);
			_service = new UserService(_mockDataContext.Object);
			_listUser = new List<User>
			            {
				            new User
				            {
					            Id = 1,
					            UserName = "******",
					            PasswordHash = "12345",
					            Type = EnumUserType.Admin
				            },
				            new User
				            {
					            Id = 2,
					            UserName = "******",
					            PasswordHash = "12345",
					            Type = EnumUserType.Student
				            },
				            new User
				            {
					            Id = 3,
					            UserName = "******",
					            PasswordHash = "12345",
					            Type = EnumUserType.Teacher
				            }
			            };
		}
示例#2
0
 public ServicoController(IBaseService<Servico> service, IBaseService<Salao.Domain.Models.Cliente.Salao> serviceSalao, IBaseService<Area> serviceArea, IBaseService<SubArea> serviceSubArea)
 {
     _service = service;
     _serviceSalao = serviceSalao;
     _serviceArea = serviceArea;
     _serviceSubArea = serviceSubArea;
 }
示例#3
0
 public PropModeTreeMng(PropagationModelCollection propModelCollection, PropagationModelLoadManager propationModelMng, PropModelTreeUserControl propModelTree, IBaseService iBaseService)
 {
     this.m_PropModelCollection = propModelCollection;
     this.m_PropationModelMng = propationModelMng;
     this.m_PropModelTree = propModelTree;
     this.m_IBaseService = iBaseService;
 }
 public ColaboradorController(IBaseService<Profissional> service, IBaseService<Salao.Domain.Models.Cliente.Salao> serviceSalao, IBaseService<Servico> serviceServico, IProfissionalServico serviceProfissionalServico)
 {
     _service = service;
     _serviceSalao = serviceSalao;
     _serviceServico = serviceServico;
     _serviceProfissionalServico = serviceProfissionalServico;
 }
示例#5
0
 public NetSimulationInterface(IBaseService provider, CollectionsModel model)
 {
     this.m_provider = provider;
     this.m_SiteCol = model.SiteColl;
     this.m_CellCol = model.TranceiverColl;
     this.m_CarrierCollection = model.LTECellColl;
 }
示例#6
0
 //public HomeController() { }
 //public HomeController(IBaseService<StudentUser> studentUserService)
 //{
 //    _studentUserService = studentUserService;
 //}
 public HomeController(IUserService userService, IBaseService<Class> classService,
     IBaseService<TeacherUser> teacherUserService)
 {
     _userService = userService;
     _classService = classService;
     _teacherUserService = teacherUserService;
 }
示例#7
0
		public void Initialize()
		{
			_mockRepository = new Mock<IRepository<Theme>>();
			_mockDataContext = new Mock<IAdminDataContext>();
			_mockDataContext.Setup(x => x.Repository<Theme>()).Returns(_mockRepository.Object);
			_service = new ThemeService(_mockDataContext.Object);
			_listTheme = new List<Theme>
			             {
				             new Theme
				             {
					             Id = 1,
					             BgColor = "red",
					             BgImage = "/images/bg1.png",
					             PrimaryColor = "white"
				             },
				             new Theme
				             {
					             Id = 2,
					             BgColor = "green",
					             BgImage = "/images/bg2.png",
					             PrimaryColor = "white"
				             },
				             new Theme
				             {
					             Id = 3,
					             BgColor = "blue",
					             BgImage = "/images/bg3.png",
					             PrimaryColor = "white"
				             }
			             };
		}
		public void Initialize()
		{
			_mockRepository = new Mock<IRepository<Application>>();
			_mockDataContext = new Mock<IAdminDataContext>();
			_mockDataContext.Setup(x => x.Repository<Application>()).Returns(_mockRepository.Object);
			_service = new ApplicationService(_mockDataContext.Object);
			_listApplication = new List<Application>
			                   {
				                   new Application
				                   {
					                   Id = 1,
					                   IsForStudent = true,
					                   IsForTeacher = false,
					                   Url = "test.com"
				                   },
				                   new Application
				                   {
					                   Id = 2,
					                   IsForStudent = false,
					                   IsForTeacher = true,
					                   Url = "test1.com"
				                   },
				                   new Application
				                   {
					                   Id = 3,
					                   IsForStudent = true,
					                   IsForTeacher = true,
					                   Url = "test2.com"
				                   }
			                   };
		}
 public MainModuleController(IEventAggregator pAggregator, IBaseService pService)
     : base (pAggregator, pService)
 {
     var menuItem = base.AddMenuItem("Test");
     menuItem.AddSubMenuItem("ComCon", new Uri("/Login"));
     base.Init();
 }
示例#10
0
 public Pagamento()
 {
     serviceCliente = new ClienteService();
     servicePayment = new PaymentService();
     serviceParametro = new ParametroService();
     serviceEmail = new EmailPayment();
 }
示例#11
0
		public void Initialize()
		{
			_mockRepository = new Mock<IRepository<School>>();
			_mockDataContext = new Mock<IAdminDataContext>();
			_mockDataContext.Setup(x => x.Repository<School>()).Returns(_mockRepository.Object);
			_service = new SchoolService(_mockDataContext.Object);
			_listSchool = new List<School>
			              {
				              new School
				              {
					              Id = 1,
					              Name = "school1"
				              },
				              new School
				              {
					              Id = 2,
					              Name = "school2"
				              },
				              new School
				              {
					              Id = 3,
					              Name = "school3"
				              }
			              };
		}
示例#12
0
 public PropModelTreeUserControl(IBaseService context)
 {
     this.m_Context = context;
     this.InitializeComponent();
     this.RootNode = new TreeNode("Propagation Models");
     this.RootNode.SelectedImageIndex = 0;
     this.RootNode.ImageIndex = 0;
 }
示例#13
0
 public BackhaulPLCalc(IBaseService iBaseService)
 {
     m_IPTPLossCalcMethod = ServiceHelper.Lookup<IPTPLossCalcMethod>(iBaseService);
     m_IPropagModelCollection = ServiceHelper.Lookup<IPropagModelCollection>(iBaseService);
     m_CalcParamFactory = new CalcParamFactory(m_IPropagModelCollection as PropagationModelCollection);
     m_IGeoInfo = ServiceHelper.Lookup<IGeoProvider>(iBaseService).GetGeoInfo;
     m_IBaseService = iBaseService;    
 }
示例#14
0
 public PropagationModelCollection(IBaseService context)
 {
     this.m_Context = context;
     this.m_PropModelList = new List<IPropagationModel>();
     this.m_PropModelDictionary = new Dictionary<int, IPropagationModel>();
     this.m_PropModelNameMap = new Dictionary<string, int>();
     this.m_PropModelCategoryDictionary = new Dictionary<int, PropagationModelCategory>();
     this.m_PropModelCategoryList = new List<PropagationModelCategory>();
 }
示例#15
0
 public TrafficForApplication(IBaseService baseService, TrafficCollectionModel model)
 {
     this.m_BaseService = baseService;
     this.m_Model = model;
     this.m_Model.TerminalManagement.CanDeletingEvent += new EventHandler<CancellerEventArgs>(this.TerminalManagement_CanDeletingEvent);
     this.m_Model.MobilityManagement.CanDeletingEvent += new EventHandler<CancellerEventArgs>(this.MobilityManagement_CanDeletingEvent);
     this.m_Model.UnionPsServiceManagement.CanDeletingEvent += new EventHandler<CancellerEventArgs>(this.UnionPsServiceManagement_CanDeletingEvent);
     this.m_Model.UnionCsServiceManagement.CanDeletingEvent += new EventHandler<CancellerEventArgs>(this.UnionCsServiceManagement_CanDeletingEvent);
 }
示例#16
0
 public CortesiaSimulado()
 {
     serviceCortesia = new CortesiaService();
     serviceResposta = new RespostaService();
     serviceCorResposta = new CorRespostaService();
     serviceSimulado = new CorSimuladoService();
     simuladoCor = new CorSimuladoService();
     parametro = new ParametroService();
 }
 public ComplaintController(IHAVComplaintService aService, IBaseService<User> aBaseService, 
                            IUserRetrievalService<User> aUserRetrievalService, IHAVIssueService aIssueService,
                            IPhotoService<User, PhotoAlbum, Photo, Friend> aPhotoService)
 {
     theService = aService;
     theUserRetrievalService = aUserRetrievalService;
     theIssueService = aIssueService;
     thePhotoService = aPhotoService;
 }
示例#18
0
 public TrafficForNetEntity(IBaseService baseServcie, TrafficCollectionModel model)
 {
     this.m_BaseService = baseServcie;
     this.m_ReceptionEquipment = model.RecepEquipManagement;
     model.RecepEquipManagement.AddEvent += new EventHandler<ReceptionEquipmentArgs>(this.RecepEquipManagement_AddEvent);
     model.RecepEquipManagement.ModifyEvent += new EventHandler<ReceptionEquipmentArgs>(this.RecepEquipManagement_ModifyEvent);
     model.RecepEquipManagement.DeleteEvent += new EventHandler<ReceptionEquipmentArgs>(this.RecepEquipManagement_DeleteEvent);
     model.RecepEquipManagement.CanDeletingEvent += new EventHandler<CancellerEventArgs>(this.RecepEquipManagement_CanDeletingEvent);
 }
示例#19
0
 public CadastroSalaoService()
 {
     service = new SalaoService();
     serviceEndereco = new Endereco.EnderecoService();
     serviceEstado = new Salao.Domain.Service.Endereco.EstadoService();
     serviceCidade = new Salao.Domain.Service.Endereco.CidadeService();
     serviceBairro = new Salao.Domain.Service.Endereco.BairroService();
     serviceTelefone = new Salao.Domain.Service.Endereco.TelefoneService();
     serviceEmail = new Salao.Domain.Service.Endereco.EmailService();
 }
示例#20
0
 //
 // GET: /Review/
 public ReviewController(IBaseService<ReviewTeacher> reviewTutorService,IBaseService<Payment> paymentService, IBaseService<ReviewClass> reviewClass,IBaseService<Enrolled> enrolledService, IUserService userService, 
     IBaseService<Class> classService, IBaseService<Location> locationService, IBaseService<TeacherUser> teacherUserService)
 {
     _enrolledService = enrolledService;
     _classService = classService;
     _reviewClassService = reviewClass;
     _paymentService = paymentService;
     _reviewTutorService = reviewTutorService;
     _teacherUserService = teacherUserService;
 }
示例#21
0
 public AdjustForm(IBaseService iBaseService, IList<FileInfoBase> fileInfoList)
 {
     this.m_IBaseService = iBaseService;
     this.m_IEventViewService = ServiceHelper.Lookup<IEventViewService>(iBaseService);
     this.InitializeComponent();
     this.m_Manage = new SetParamManage(iBaseService, this.m_DataForAdjust, fileInfoList);
     this.m_Manage.InitPropModel(this.cbPropModel);
     this.m_FileInfoList = fileInfoList;
     this.m_Manage.InitCheckBoxList(this.clbMeasureFile);
     this.InitTablelayoutpanel();
 }
示例#22
0
 /// <summary>
 /// 从Context中获取本case所需的指标
 /// </summary>
 /// <param name="context"></param>
 private void GetDataFromContext(Context context)
 {
     m_appContext = (IBaseService)context[ContextKeys.ApplicationContext];
     m_ProjectManager = ServiceHelper.Lookup<IProjectManager>(m_appContext);
     m_tFMatrix = (TrueFalseMatrix)context[ContextKeys.TFMatrix];
     m_predictionGroup = (TDPredictionGroup)context[ContextKeys.Group];
     m_procGain = TDPredictionCommonCalc.GetProcGain(m_predictionGroup);
     m_ULDCHRSCPMatrix = (ValueMatrixShort)context[ContextKeys.ULDCHRSCP];
     m_BestServerCellIDMatrix = (ValueMatrixShort)context[ContextKeys.TDBestServerCellID];
     m_cells = (List<IACell>)context[ContextKeys.CellList];  
 }
示例#23
0
 public PaymentController(IBaseService<Enrolled> enrolledService, IBaseService<Class> classService, IBaseService<Location> locationService,
     IBaseService<Payment> paymentService, IBaseService<TeacherUser> teacherService, IUserService userService, IEmailService emailService)
 {
     _classService = classService;
     _locationService = locationService;
     _paymentService = paymentService;
     _teacherUserService = teacherService;
     _userService = userService;
     _emailService = emailService;
     _enrolledService = enrolledService;
 }
示例#24
0
 public NetTrafficInterface(IBaseService baseService, CollectionsModel model)
 {
     this.baseService = baseService;
     this.m_CellCol = model.TranceiverColl;
     this.m_CarrierCollection = model.LTECellColl;
     this.m_FreBandDic = new Dictionary<NetWorkType, BaseCollection<FrequencyBand, FreDealedArgs>>();
     this.m_FreBandDic.Add(NetWorkType.LTE, model.LteFreBandCol);
     this.m_FreBandDic.Add(NetWorkType.GSM, model.GSMFreBandCol);
     this.m_FreBandDic.Add(NetWorkType.CDMA, model.CDMAFreBandColl);
     this.m_FreBandDic.Add(NetWorkType.TDSCDMA, model.TDFreBandColl);
     this.m_FreBandDic.Add(NetWorkType.UMTS, model.UMTSFreBandColl);
 }
示例#25
0
 public SearchController(IBaseService<TeacherUser> teacherUserService, IUserService userService,
     IBaseService<Class> classService, IBaseService<Location> locationService,
     IBaseService<ReviewTeacher> reviewTeacherService, IBaseService<Subject> subjectService,
     IBaseService<Class_Meeting_Dates> classMeetingDatesService)
 {
     _teacherUserService = teacherUserService;
     _userService = userService;
     _classService = classService;
     _locationService = locationService;
     _reviewTeacherService = reviewTeacherService;
     _subjectService = subjectService;
     _classMeetingDatesService = classMeetingDatesService;
 }
        public PDrillHoles2PrintSet(IBaseService<COLLAR2> CollarModel, IBaseService<ASSAYS2> AssaysModel, IViewDrillHoles2PrintSet View)
        {
            _collarModel = CollarModel;
            _assaysModel = AssaysModel;
            _view = View;

            _view._selectBench +=new EventHandler<EventArgs>(On_view__selectBench);
            _view._clickOk += new EventHandler<EventArgs>(On_view__clickOk);
            _view._formClosing+=new EventHandler<EventArgs>(On_view__formClosing);

            _view.benchList = new List<string>();
            _view.blastList = new List<string>();
        }
示例#27
0
 private void GetValueFromContext(Context context)
 {
     m_tdPreGroup = (TDPredictionGroup)context[ContextKeys.Group];
     m_tFMatrix = (TrueFalseMatrix)context[ContextKeys.TFMatrix];
     m_AppContext = (IBaseService)context[ContextKeys.ApplicationContext];
     m_Name = m_tdPreGroup.Name;
     TrafficAdaptorAssist trafficAdaptor = TrafficAdaptorAssist.Instance;
     m_BearerList = trafficAdaptor.TDHSUPABearerList;
     m_BestServerCellIDMatrix = (ValueMatrixShort)context[ContextKeys.TDBestServerCellID];
     m_cells = (List<IACell>)context[ContextKeys.CellList];
     m_ProjectManager = ServiceHelper.Lookup<IProjectManager>(m_AppContext);
     m_tdTerminal = (TDTerminal)m_tdPreGroup.TrafficTerminal.GetNetWorkTerminal(NetWorkType.TDSCDMA);
     m_HSUPACIMatrix = (ValueMatrixShort)context[ContextKeys.ULDCHCIR];
 }
示例#28
0
 public PCollar2Crud(IViewCollar2Crud View
                     , IBaseService<COLLAR2> Model
                     , IBaseService<GORIZONT> ModelGorizont
                     , IBaseService<RL_EXPLO2> ModelBlast
                     , IBaseService<DRILLING_TYPE> ModelDrillType
                     , IBaseService<DOMEN> ModelDomen)
 {
     _view = View;
     _model = Model;
     _modelGorizont = ModelGorizont;
     _modelBlast = ModelBlast;
     _modelDrillType = ModelDrillType;
     _modelDomen = ModelDomen;
     _view.clickOk+=new EventHandler<EventArgs>(OnClickOk);
     _view.clickCloseForm += new EventHandler<EventArgs>(OnClickCloseForm);
 }
示例#29
0
 public AccountController(IBaseService<Schedule> scheduleServie, IBaseService<Payment> paymentsService, IBaseService<Enrolled> enrolledService, IBaseService<Class_Meeting_Dates> classMeetingDatesService, IBaseService<Subject> subjectService, IUserService userService, IBaseService<Class> classService, IBaseService<Location> locationService,
     IBaseService<TeacherUser> teacherUserService, ILoginService loginService, IBaseService<Request> requestService, IBaseService<Teacher_Offers> teacherOfferService, IBaseService<Tutors> tutorsService,
     IBaseService<Schedule> scheduleService, IEmailService emailService)
 {
     _userService = userService;
     _classService = classService;
     _locationService = locationService;
     _loginService = loginService;
     _requestService = requestService;
     _teacherUserService = teacherUserService;
     _userService = userService;
     _subjectService = subjectService;
     _classMeetingDatesService = classMeetingDatesService;
     _enrolledService = enrolledService;
     _teacherOfferService = teacherOfferService;
     _tutorsService = tutorsService;
     _paymentsService = paymentsService;
     _scheduleService = scheduleService;
     _emailService = emailService;
 }
示例#30
0
 public void Init()
 {
     _view = Substitute.For<IViewCollar2Crud>();
     _view.gorizontID = 2;
     _view.hole = 5;
     _view.xcollar = 1.1;
     _view.ycollar = 2.2;
     _view.zcollar = 3.3;
     _view.drillType = 3;
     _view.enddepth = 10;
     _modelCollarRecords = new List<COLLAR2>();
     _modelCollar = Substitute.For<IBaseService<COLLAR2>>();
     _modelBlast = Substitute.For<IBaseService<RL_EXPLO2>>();
     _modelDrillType = Substitute.For<IBaseService<DRILLING_TYPE>>();
     _modelDomen = Substitute.For<IBaseService<DOMEN>>();
     _modelGorizont = Substitute.For<IBaseService<GORIZONT>>();
     _modelCollar.Count().ReturnsForAnyArgs(_modelCollarRecords.Count());
     _modelCollar.When(x => x.Create(Arg.Any<COLLAR2>())).Do(x => _modelCollarRecords.Add(x[0] as COLLAR2));
     Collar2Crud = new PCollar2Crud(_view, _modelCollar, _modelGorizont, _modelBlast, _modelDrillType, _modelDomen);
 }
示例#31
0
 public RoleController(IBaseService <MRole, object> service) : base(service)
 {
 }
示例#32
0
 public AppContatoService(IContatoService service, IBaseService <Empresa> empresaService)
 {
     _service        = service;
     _empresaService = empresaService;
 }
示例#33
0
 public CustomerApi(IBaseService <Customer> service) : base(service)
 {
     _service = service;
 }
 public InvalidateWholeCacheReceiver(IBaseService <T> remoteSvc)
 {
     log            = LogManager.GetLogger(GetType());
     _remoteService = remoteSvc;
     //_remoteService.InvalidateWholeCache += new InvalidateWholeCacheDelegate(_remoteService_InvalidateWholeCache);
 }
 public ClassificationService(IBaseService <ClassificationData> baseService, IMapper mapper)
 {
     _classificationService = baseService;
     _mapper = mapper;
 }
示例#36
0
 public ValuesController(IBaseService <AdminEntity> baseService)
 {
     this.baseService = baseService;
 }
示例#37
0
 public DetailsModel(UserManager <User> userManager, IBaseService baseService, IMessageService messageService)
 {
     _userManager    = userManager;
     _baseService    = baseService;
     _messageService = messageService;
 }
示例#38
0
 public FinancesController(IBaseService baseService)
 {
     this.baseService = baseService ?? throw new ArgumentNullException(nameof(baseService));
 }
示例#39
0
 public DeleteUserHandler(IBaseService <UserDTO> userService, IMapper mapper)
 {
     _userService = userService;
     _mapper      = mapper;
 }
示例#40
0
 public ContaFinanceiraController(IBaseService <ContaFinanceira> service, ILogin login)
 {
     this.service = service;
     this.login   = login;
 }
示例#41
0
 public MovieController(IBaseService baseService, IMovieService movieService)
 {
     _baseService  = baseService;
     _movieService = movieService;
 }
示例#42
0
 public SizeController(IBaseService <Size> sizeService)
 {
     _sizeService = sizeService;
 }
示例#43
0
 public RecipeFacade(IRecipe recipeService, IBaseService baseService) : base(baseService)
 {
     _recipeService = recipeService;
 }
示例#44
0
 public TteetsController(IBaseService baseService, ITteetService tteetService)
     : base(baseService)
 {
     this.tteetService = tteetService;
 }
示例#45
0
 public EmpresaServiceTests()
 {
     service = new EmpresaService();
 }
示例#46
0
 public DepartmentsController(IBaseService <Department> departmentService) : base(departmentService)
 {
 }
 public AccountService(IBaseService baseService, ILoggingService logger, IPassswordHackScanner hackScanner)
 {
     _baseService = baseService;
     _logger      = logger;
     _hackScanner = hackScanner;
 }
示例#48
0
 public BaseApi(IBaseService <T> baseService)
 {
     _baseService = baseService;
 }
 public VehicleCategoryController(
     ILogger <VehicleCategory> logger, IBaseService <VehicleCategory> service
     ) : base(logger, service)
 {
 }
 public DetailedStatusService(IBaseService <DetailedStatusData> baseService, IMapper mapper)
 {
     _detailedStatusService = baseService;
     _mapper = mapper;
 }
示例#51
0
 public CustomerGroupsController(IBaseService <CustomerGroup> baseService) : base(baseService)
 {
     _baseService = baseService;
 }
示例#52
0
 public BaseController(IBaseService <TEntity> baseService)
 {
     _baseService = baseService;
 }
 public ReqRequisicaoServiceTests()
 {
     service           = new ReqRequisicaoService();
     serviceRequisicao = new ReqRequisicaoService();
 }
 public ConsultationService(IBaseService <ConsultantAvailability, int> Availabilityservice,
                            IBaseService <ConsultantEvaluation, int> ConsultantEvaluationservice)
 {
     _availabilityservice         = Availabilityservice;
     _consultantEvaluationservice = ConsultantEvaluationservice;
 }
示例#55
0
 public PositionApi(IBaseService <Position> baseService) : base(baseService)
 {
 }
示例#56
0
 public CentroController(IBaseService <Centro> service)
 {
     _service = service;
 }
 public ClientsApiController(ClientService service)
 {
     _service = service;
 }
示例#58
0
 public SocioServiceTests()
 {
     service = new SocioService();
 }
示例#59
0
 public QuoteService(IBaseService baseService)
 {
     _baseService = baseService;
 }
示例#60
0
 public CeldaController(IBaseService <Celda> service)
 {
     _service = service;
 }