Example #1
0
 public UnitCommandhandler(IUnitRepository unitRepository,
                           IMediatorHandler bus,
                           INotificationHandler <DomainNotification> notifications) : base(bus, notifications)
 {
     _unitRepository = unitRepository;
     _bus            = bus;
 }
Example #2
0
 public MirrorImageEffect(MirrorImageEffectData data, List <Validator> validators,
                          IUnitRepository unitRepository, IBehaviourRepository behaviourRepository) : base(data, validators)
 {
     this.data                = data;
     this.unitRepository      = unitRepository;
     this.behaviourRepository = behaviourRepository;
 }
Example #3
0
 public ElsaExcelModelFactory(IMaterialRepository materialRepository, IUnitRepository unitRepository, ISupplierRepository supplierRepository, ICurrencyRepository currencyRepository)
 {
     m_materialRepository = materialRepository;
     m_unitRepository     = unitRepository;
     m_supplierRepository = supplierRepository;
     m_currencyRepository = currencyRepository;
 }
Example #4
0
        public FakeServiceProviderBuilderForJob AddUnitRepository()
        {
            var unitProvider = new UnitsProviderFake();

            UnitRepository = unitProvider.GetUnitRepository();
            return(this.WithService(UnitRepository));
        }
Example #5
0
 public RepositoryWrapper(
     MeasureContext db,
     IMeasurePointRepository measurePoint,
     ILocationRepository location,
     IMeasureValueRepository measureValue,
     ILinkRepository link,
     IPriorityStateRepository priorityState,
     IUnitRepository unit,
     IActiveMeasurePointRepository activeMeasurePoint,
     IBatteryStateRepository batteryState,
     IAirUserRepository airUser,
     ILogger <RepositoryWrapper> logger)
 {
     _db                = db;
     MeasurePoint       = measurePoint;
     Location           = location;
     MeasureValue       = measureValue;
     Link               = link;
     PriorityState      = priorityState;
     Unit               = unit;
     ActiveMeasurePoint = activeMeasurePoint;
     BatteryState       = batteryState;
     AirUser            = airUser;
     _logger            = logger;
 }
Example #6
0
 public IndexModel(IItemRepository itemRepository, IItemCategoryRepository itemCategoryRepository, IRecipeRepository recipeRepository, IUnitRepository unitRepository)
 {
     this.itemRepository         = itemRepository;
     this.itemCategoryRepository = itemCategoryRepository;
     this.recipeRepository       = recipeRepository;
     this.unitRepository         = unitRepository;
 }
Example #7
0
 public TestBLL()
 {
     shopRepo     = new ShopRepository(conn);
     businessRepo = new BusinessRepository(conn);
     imgRepo      = new ImagesRepository(conn);
     prodRepo     = new ProductRepository(conn);
     unitRepo     = new UnitRepository(conn);
     priceRepo    = new PriceRepository(conn);
     costRepo     = new CostRepository(conn);
     stockRepo    = new StockRepository(conn);
     userRepo     = new UserRepository(conn);
     billsRepo    = new BillsRepository(conn);
     expRepo      = new ExpensesRepository(conn);
     foldersRepo  = new FoldersRepository(conn);
     dbBase       = new DropBoxBase("o9340xsv2mzn7ws", "xzky2fzfnmssik1");
     checker      = new ShopsChecker(shopRepo);
     dbBase.GeneratedAuthenticationURL();
     dbBase.GenerateAccessToken();
     prodService = new ProductService(shopRepo, businessRepo, imgRepo, dbBase, prodRepo, unitRepo, priceRepo,
                                      costRepo, stockRepo, ordersRepo, strategy, new FoldersDataService(foldersRepo, prodRepo));
     orderStockRepo     = new OrderStockRepository(conn);
     strategy           = new FifoStrategy(orderStockRepo, stockRepo, costRepo);
     salesService       = new SalesSerivce(userRepo, shopRepo, billsRepo, prodRepo, priceRepo, imgRepo, strategy, checker, costRepo);
     ordersRepo         = new OrdersRepository(conn);
     productDataService = new ProductDataService(dbBase);
 }
Example #8
0
 public BatchReportingFacade(ISession session,
                             IDatabase database,
                             IMaterialBatchFacade batchFacade,
                             IMaterialBatchRepository batchRepository,
                             IMaterialRepository materialRepository,
                             IProductionFacade productionFacade,
                             AmountProcessor amountProcessor,
                             IUnitRepository unitRepository,
                             IOrdersFacade ordersFacade,
                             IOrderStatusRepository orderStatusRepository,
                             IPurchaseOrderRepository orderRepository,
                             IUserRepository userRepository,
                             IStockEventRepository stockEventRepository,
                             ISaleEventRepository saleEventRepository)
 {
     m_session               = session;
     m_database              = database;
     m_batchFacade           = batchFacade;
     m_batchRepository       = batchRepository;
     m_materialRepository    = materialRepository;
     m_productionFacade      = productionFacade;
     m_amountProcessor       = amountProcessor;
     m_unitRepository        = unitRepository;
     m_ordersFacade          = ordersFacade;
     m_orderStatusRepository = orderStatusRepository;
     m_orderRepository       = orderRepository;
     m_userRepository        = userRepository;
     m_stockEventRepository  = stockEventRepository;
     m_saleEventRepository   = saleEventRepository;
 }
 public RecipeCreateModel(IRecipeRepository recipeRepository, IItemRepository itemRepository, IUnitRepository unitRepository, IRecipeImageRepository recipeImageRepository)
 {
     this.recipeRepository      = recipeRepository;
     this.itemRepository        = itemRepository;
     this.unitRepository        = unitRepository;
     this.recipeImageRepository = recipeImageRepository;
 }
Example #10
0
        public UserServiceFacade(ISecurityService securityService,
                                 IMapper <ClaimsPrincipal, UserStateDTO> userStateMapper,
                                 IMapper <List <User>, ClaimsPrincipal> pmsUsersMapper,
                                 IUserRepository userRep,
                                 IMapper <User, UserDTOWithActions> userDTOWithActionsMapper,
                                 IMapper <User, UserDTO> userDTOMapper,
                                 IMapper <Group, UserGroupDTOWithActions> userGroupDTOWithActionsMapper,
                                 IMapper <Group, UserGroupDTO> userGroupDTOMapper,
                                 //IMapper<ActionType, ActionTypeDTO> actionTypeDTOMapper ,
                                 IMapper <Group, UserGroupDescriptionDTO> userGroupDescriptionDTOMapper,
                                 IMapper <User, UserDescriptionDTO> userDescriptionDTOMapper,

                                 ISecurityServiceFacade securityServiceFacade,
                                 ISecurityService _securityApplicationService, IUserManagementService userManagementService, IUnitRepository unitRepository
                                 )
        {
            this.securityService               = securityService;
            this.userStateMapper               = userStateMapper;
            this.pmsUsersMapper                = pmsUsersMapper;
            this.userRep                       = userRep;
            this.userDTOWithActionsMapper      = userDTOWithActionsMapper;
            this.userDTOMapper                 = userDTOMapper;
            this.userGroupDTOWithActionsMapper = userGroupDTOWithActionsMapper;
            this.userGroupDTOMapper            = userGroupDTOMapper;

            this.userGroupDescriptionDTOMapper = userGroupDescriptionDTOMapper;
            this.userDescriptionDTOMapper      = userDescriptionDTOMapper;

            this.securityServiceFacade       = securityServiceFacade;
            this._securityApplicationService = _securityApplicationService;
            this.userManagementService       = userManagementService;
            this.unitRepository = unitRepository;
        }
Example #11
0
 public SpamCommand(IServiceProvider service, long chatId) : base(service, chatId)
 {
     _client            = service.GetService <IGameplayClient>();
     _villageRepository = service.GetService <IVillageRepository>();
     _mapper            = service.GetService <IMapper>();
     _unitRepository    = service.GetService <IUnitRepository>();
 }
 public InvoiceController(IInvoiceRepository invoice, IItemRepository item, IStoreRepository store, IUnitRepository unit)
 {
     this.invoice = invoice;
     this.item    = item;
     this.store   = store;
     this.unit    = unit;
 }
Example #13
0
 public UnitService(
     IMessageClass messageClass,
     IUnitRepository unitRepository)
 {
     _unitRepository = unitRepository;
     _messageClass   = messageClass;
 }
Example #14
0
 public PeriodServiceFacade(IPeriodService periodService,
                            IMapper <Period, PeriodDescriptionDTO> periodDescriptionMapper,
                            IMapper <Period, PeriodDTOWithAction> periodDTOWithActionsMapper,
                            IMapper <Period, PeriodDTO> periodDTOMapper,
                            IMapper <InquiryInitializingProgress, PeriodStateWithIntializeInquirySummaryDTO>
                            periodInitializeInquiryStateReportMapper,
                            IMapper <BasicDataCopyingProgress, PeriodStateWithCopyingSummaryDTO> periodCopyingStateReportMapper,
                            IPeriodRepository periodRep, IPeriodEngineService periodEngine, IEmployeeRepository employeeRepository,
                            IJobPositionRepository jobPositionRepository, IUnitRepository unitRepository,
                            IJobIndexPointRepository jobIndexPointRepository, ICalculationRepository calculationRepository, IJobIndexRepository jobIndexRepository)
 {
     this.periodService              = periodService;
     this.periodDescriptionMapper    = periodDescriptionMapper;
     this.periodDTOWithActionsMapper = periodDTOWithActionsMapper;
     this.periodDTOMapper            = periodDTOMapper;
     this.periodInitializeInquiryStateReportMapper = periodInitializeInquiryStateReportMapper;
     this.periodCopyingStateReportMapper           = periodCopyingStateReportMapper;
     this.periodRep               = periodRep;
     this.periodEngine            = periodEngine;
     this.employeeRepository      = employeeRepository;
     this.jobPositionRepository   = jobPositionRepository;
     this.unitRepository          = unitRepository;
     this.jobIndexPointRepository = jobIndexPointRepository;
     this.calculationRepository   = calculationRepository;
     this.jobIndexRepository      = jobIndexRepository;
 }
Example #15
0
 public CreateUnitEffect(CreateUnitEffectData data, List <Validator> validators, BoardNavigator boardNavigator,
                         IUnitRepository unitRepository) : base(data, validators)
 {
     this.data           = data;
     this.boardNavigator = boardNavigator;
     this.unitRepository = unitRepository;
 }
Example #16
0
 public ReportHelper(IQuestionRepository questionRepository, IQuestionRatingRepository questionRatingRepository, IUnitRepository unitRepository, ITestSetRepository testSetRepository)
 {
     _questionRepository       = questionRepository;
     _unitRepository           = unitRepository;
     _questionRatingRepository = questionRatingRepository;
     _testSetRepository        = testSetRepository;
 }
 public PowderQuantityService(IPowderQuantityRepository iRepository, IPowderRepository iPowderRepository, IInventoryTypeRepository iInventoryTypeRepository, IUnitRepository iUnitRepository)
 {
     this.repository              = iRepository;
     this.powderRepository        = iPowderRepository;
     this.inventoryTypeRepository = iInventoryTypeRepository;
     this.unitRepository          = iUnitRepository;
 }
Example #18
0
 public BulletQuantityService(IBulletQuantityRepository iRepository, IBulletRepository iBulletRepository, IInventoryTypeRepository iInventoryTypeRepository, IUnitRepository iUnitRepository)
 {
     this.repository              = iRepository;
     this.bulletRepository        = iBulletRepository;
     this.inventoryTypeRepository = iInventoryTypeRepository;
     this.unitRepository          = iUnitRepository;
 }
Example #19
0
 public FileService(IBuildingRepository buildingRepo,
                    IFileRepository fileRepo,
                    IRoomRepository roomRepo,
                    IUnitRepository unitRepo,
                    IGenericRepository <BuildingCategory> buildingTypeRepo,
                    IGenericRepository <Guest> guestRepo,
                    IGenericRepository <Stay> stayRepo,
                    IGenericRepository <Rank> rankRepo,
                    IGenericRepository <Service> serviceRepo,
                    BuildingService buildingsService,
                    RankParser rankConverter,
                    ServiceParser serviceParser,
                    IMapper mapper)
 {
     _buildingRepo     = buildingRepo;
     _buildingTypeRepo = buildingTypeRepo;
     _fileRepo         = fileRepo;
     _roomRepo         = roomRepo;
     _unitRepo         = unitRepo;
     _guestRepo        = guestRepo;
     _stayRepo         = stayRepo;
     _rankRepo         = rankRepo;
     _serviceRepo      = serviceRepo;
     _buildingsService = buildingsService;
     _rankConverter    = rankConverter;
     _serviceParser    = serviceParser;
     _mapper           = mapper;
 }
Example #20
0
 public DirectSalesGenerator(IMaterialBatchFacade batchFacade, IInvoiceFormsRepository invoiceFormsRepository, IMaterialRepository materialRepository, IUnitRepository unitRepository, IDatabase database, ISaleEventRepository saleEventRepository) : base(batchFacade, invoiceFormsRepository, materialRepository)
 {
     m_materialRepository  = materialRepository;
     m_unitRepository      = unitRepository;
     m_database            = database;
     m_saleEventRepository = saleEventRepository;
 }
Example #21
0
 public BulletQuantityService()
 {
     this.repository              = new BulletQuantityRepository();
     this.bulletRepository        = new BulletRepository();
     this.inventoryTypeRepository = new InventoryTypeRepository();
     this.unitRepository          = new UnitRepository();
 }
 public UsersController(IMembershipService membershipService, IRoleService roleService, ILoginTracker loginTracker, IUnitRepository repoUnit)
 {
     _membershipService = membershipService;
     _roleService       = roleService;
     _loginTracker      = loginTracker;
     _repoUnit          = repoUnit;
 }
Example #23
0
 public BrassQuantityService(IBrassQuantityRepository iRepository, IBrassRepository iBrassRepository, IInventoryTypeRepository iInventoryTypeRepository, IUnitRepository iUnitRepository)
 {
     this.repository              = iRepository;
     this.brassRepository         = iBrassRepository;
     this.inventoryTypeRepository = iInventoryTypeRepository;
     this.unitRepository          = iUnitRepository;
 }
Example #24
0
 public BrassQuantityService()
 {
     this.repository              = new BrassQuantityRepository();
     this.brassRepository         = new BrassRepository();
     this.inventoryTypeRepository = new InventoryTypeRepository();
     this.unitRepository          = new UnitRepository();
 }
 public ItemMasterSerivce()
 {
     _unitOfWork      = new UnitOfWork(new MyApp_BitSolveEntities());
     _ItemRepository  = new ItemMasterRepository(_unitOfWork);
     _ITypeRepository = new TypeRepository(_unitOfWork);
     _IUnitRepository = new UnitRepository(_unitOfWork);
 }
Example #26
0
 public MaterialBatchFacade(
     ILog log,
     IVirtualProductFacade virtualProductFacade,
     IMaterialBatchRepository batchRepository,
     IPurchaseOrderRepository orderRepository,
     AmountProcessor amountProcessor,
     ICache cache,
     IDatabase database,
     IPackingPreferredBatchRepository batchPreferrenceRepository,
     IKitProductRepository kitProductRepository,
     IUnitConversionHelper conversionHelper,
     IMaterialThresholdRepository materialThresholdRepository,
     IMaterialRepository materialRepository,
     IUnitRepository unitRepository,
     IStockEventRepository stockEventRepository,
     ISession session,
     IFixedCostRepository fixedCostRepository)
 {
     m_log = log;
     m_virtualProductFacade = virtualProductFacade;
     m_batchRepository      = batchRepository;
     m_orderRepository      = orderRepository;
     m_amountProcessor      = amountProcessor;
     m_cache    = cache;
     m_database = database;
     m_batchPreferrenceRepository  = batchPreferrenceRepository;
     m_kitProductRepository        = kitProductRepository;
     m_conversionHelper            = conversionHelper;
     m_materialThresholdRepository = materialThresholdRepository;
     m_materialRepository          = materialRepository;
     m_unitRepository       = unitRepository;
     m_stockEventRepository = stockEventRepository;
     m_session             = session;
     m_fixedCostRepository = fixedCostRepository;
 }
Example #27
0
 public void SetUp()
 {
     scope           = new TransactionScope();
     _unitRepository = new UnitRepository();
     _unitService    = new UnitService(_unitRepository);
     _unitController = new UnitController(_unitService);
 }
Example #28
0
 public CommonHelper(IRoleRepository roleRepository, IUnitRepository unitRepository, IUserSettingsRepository userSettingsRepository, IUnitSelectionRepository unitSelectionRepository)
 {
     _roleRepository          = roleRepository;
     _unitRepository          = unitRepository;
     _userSettingsRepository  = userSettingsRepository;
     _unitSelectionRepository = unitSelectionRepository;
 }
 public PowderQuantityService()
 {
     this.repository              = new PowderQuantityRepository();
     this.powderRepository        = new PowderRepository();
     this.inventoryTypeRepository = new InventoryTypeRepository();
     this.unitRepository          = new UnitRepository();
 }
Example #30
0
 public LoginViewModel(IWindowManager windowManager, IUnitRepository unitRepository)
 {
     _windowManager  = windowManager;
     _unitRepository = unitRepository;
     DisplayName     = "MyProject - Login";
     Version         = ApplicationVersionRepository.GetVersion();
 }
 public CategoryController(ICategoryRepository categoryRepository, IDepartmentRepository departmentRepository,
                           ICycleRepository cycleRepository, IUnitRepository unitRepository)
 {
     this.categoryRepository = categoryRepository;
     this.departmentRepository = departmentRepository;
     this.cycleRepository = cycleRepository;
     this.unitRepository = unitRepository;
 }
 public HomeController(IMissionRepository missionRepository, ICorporationRepository corporationRepository, ISectorRepository sectorRepository, 
                       IUnitRepository unitRepository, IItemRepository itemRepository)
 {
     _missionRepository = missionRepository;
     _corporationRepository = corporationRepository;
     _sectorRepository = sectorRepository;
     _unitRepository = unitRepository;
     _itemRepository = itemRepository;
 }
Example #33
0
        public UnitController(IUnitRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.ToLong();
            this._UserId = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog = catalog;

            this.UnitRepository = repository;
        }
Example #34
0
 public UnitController(IUnitOfWork unitOfWork,
     IUnitBusinessLogic unitBusinessLogic,
     IUnitRepository unitRepository,
     IUnitUserRepository unitUserRepository)
 {
     this.unitOfWork = unitOfWork;
     this.unitBusinessLogic = unitBusinessLogic;
     this.unitRepository = unitRepository;
     this.unitUserRepository = unitUserRepository;
 }
Example #35
0
        public UnitController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog = AppUsers.GetCurrentUserDB();

            this.UnitRepository = new MixERP.Net.Schemas.Core.Data.Unit
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
Example #36
0
 public OrderController(IRepository<Availability> availRepo, IBuyerAvailabilityRepository buyerAvailRepo,
     IRepository<Buyer> buyerRepo, ICropRepository cropRepo, ICropUnitRepository cuRepo,
     IRepository<Offered> offerRepo, IRepository<Ordered> orderedRepo, IRepository<Order> orderRepo,
     IPriceRepository priceRepo, IUnitRepository unitRepo)
 {
     this.availRepo = availRepo;
     this.buyerAvailRepo = buyerAvailRepo;
     this.buyerRepo = buyerRepo;
     this.cropRepo = cropRepo;
     this.cuRepo = cuRepo;
     this.offerRepo = offerRepo;
     this.orderedRepo = orderedRepo;
     this.orderRepo = orderRepo;
     this.priceRepo = priceRepo;
     this.unitRepo = unitRepo;
 }
 // This will be created from test project and passed on to the
 // controllers parameterized constructors
 //Over here to simply , we have passed the repository , for our case we passed the unit of work
 public UnitOfWork(IUnitRepository unitRepository)
 {
     UnitRepository = unitRepository;
 }
Example #38
0
 public UnitBusinessLogic(IUnitRepository unitRepository, IDomainValidator validator)
 {
     this.unitRepository = unitRepository;
     this.validator = validator;
 }
 // This will be created from test project and passed on to the
 // controllers parameterized constructors
 //Over here to simply , we have passed the repository , for our case we passed the unit of work
 public RepositroyTest(IUnitRepository unitRepository)
 {
     UnitRepository2 = unitRepository;
 }
 public UnitRepositoryPatternController(IUnitRepository repository)
 {
     Unitrepository = repository;
 }
Example #41
0
 public UnitController(IUnitRepository repo)
 {
     this.db = repo;
 }
Example #42
0
 public UnitController(IUnitRepository unitRepository)
 {
     this.unitRepository = unitRepository;
 }