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 } }; }
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; }
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; }
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; }
//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; }
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(); }
public Pagamento() { serviceCliente = new ClienteService(); servicePayment = new PaymentService(); serviceParametro = new ParametroService(); serviceEmail = new EmailPayment(); }
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" } }; }
public PropModelTreeUserControl(IBaseService context) { this.m_Context = context; this.InitializeComponent(); this.RootNode = new TreeNode("Propagation Models"); this.RootNode.SelectedImageIndex = 0; this.RootNode.ImageIndex = 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; }
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>(); }
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); }
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; }
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); }
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(); }
// // 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; }
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(); }
/// <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]; }
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; }
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); }
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>(); }
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]; }
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); }
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; }
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); }
public RoleController(IBaseService <MRole, object> service) : base(service) { }
public AppContatoService(IContatoService service, IBaseService <Empresa> empresaService) { _service = service; _empresaService = empresaService; }
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; }
public ValuesController(IBaseService <AdminEntity> baseService) { this.baseService = baseService; }
public DetailsModel(UserManager <User> userManager, IBaseService baseService, IMessageService messageService) { _userManager = userManager; _baseService = baseService; _messageService = messageService; }
public FinancesController(IBaseService baseService) { this.baseService = baseService ?? throw new ArgumentNullException(nameof(baseService)); }
public DeleteUserHandler(IBaseService <UserDTO> userService, IMapper mapper) { _userService = userService; _mapper = mapper; }
public ContaFinanceiraController(IBaseService <ContaFinanceira> service, ILogin login) { this.service = service; this.login = login; }
public MovieController(IBaseService baseService, IMovieService movieService) { _baseService = baseService; _movieService = movieService; }
public SizeController(IBaseService <Size> sizeService) { _sizeService = sizeService; }
public RecipeFacade(IRecipe recipeService, IBaseService baseService) : base(baseService) { _recipeService = recipeService; }
public TteetsController(IBaseService baseService, ITteetService tteetService) : base(baseService) { this.tteetService = tteetService; }
public EmpresaServiceTests() { service = new EmpresaService(); }
public DepartmentsController(IBaseService <Department> departmentService) : base(departmentService) { }
public AccountService(IBaseService baseService, ILoggingService logger, IPassswordHackScanner hackScanner) { _baseService = baseService; _logger = logger; _hackScanner = hackScanner; }
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; }
public CustomerGroupsController(IBaseService <CustomerGroup> baseService) : base(baseService) { _baseService = baseService; }
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; }
public PositionApi(IBaseService <Position> baseService) : base(baseService) { }
public CentroController(IBaseService <Centro> service) { _service = service; }
public ClientsApiController(ClientService service) { _service = service; }
public SocioServiceTests() { service = new SocioService(); }
public QuoteService(IBaseService baseService) { _baseService = baseService; }
public CeldaController(IBaseService <Celda> service) { _service = service; }