Beispiel #1
0
 private DBContext()
 {
     _accounts           = new AccountRepository();
     _accountTypes       = new AccountTypeRepository();
     _audits             = new AuditRepository();
     _categories         = new CategoryRepository();
     _containers         = new ContainerRepository();
     _dimensions         = new DimensionRepository();
     _facilities         = new FacilityRepository();
     _facilityTypes      = new FacilityTypeRepository();
     _priorities         = new PriorityRepository();
     _users              = new UserRepository();
     _packagingLevels    = new PackagingLevelRepository();
     _pictures           = new PictureRepository();
     _projects           = new ProjectRepository();
     _ratings            = new RatingRepository();
     _requests           = new RequestRepository();
     _requestItems       = new RequestItemRepository();
     _requestItemTypes   = new RequestItemTypeRepository();
     _roles              = new RoleRepository();
     _sources            = new SourceRepository();
     _status             = new StatusRepository();
     _status             = new StatusRepository();
     _tasks              = new TaskRespository();
     _dcIssueItems       = new DCIssueItemRepository();
     _dcIssues           = new DCIssueRepository();
     _dcIssuesFacilities = new DCIssueFacilityRepository();
     _failedSamples      = new FailedSampleRepository();
     _requestCategories  = new RequestCategoryRepository();
 }
Beispiel #2
0
 /// <summary>
 /// Zwalnianie zasobów
 /// </summary>
 protected override void OnDisposeController()
 {
     if (_repository != null)
     {
         _repository.Dispose();
         _repository = null;
     }
 }
Beispiel #3
0
 public EntryRepository(DataContext context,
                        IEntryTypeRepository entryTypeRepository,
                        IPriorityRepository priorityRepository)
     : base(context)
 {
     _priorityRepository  = priorityRepository;
     _entryTypeRepository = entryTypeRepository;
 }
Beispiel #4
0
 public MessageModel(IMessageRepository messageRepository,
                     IEventRepository eventRepository,
                     IPriorityRepository priorityRepository,
                     IApprovalRepository approvalRepository,
                     IAuthenticationService authenticationService)
 {
     this._messageRepository     = messageRepository;
     this._eventRepository       = eventRepository;
     this._priorityRepository    = priorityRepository;
     this._approvalRepository    = approvalRepository;
     this._authenticationService = authenticationService;
 }
 public ProjectService(IProjectRepository proRe, IProjectCategoryRepository proCa, IStatusRepository status, ITaskRepository taskRe, IPriorityRepository pri, ITask_UserRepository taskUSer, IUserJiraRepository us, ICommentRepository cmt, IUserService usService, IProject_UserReponsitory project_userService, ITaskTypeRepository taskTyperepository,
                       IMapper mapper)
     : base(proRe, mapper)
 {
     _projectRepository         = proRe;
     _projectCategoryRepository = proCa;
     _statusRepository          = status;
     _taskRepository            = taskRe;
     _priorityRepository        = pri;
     _taskUserRepository        = taskUSer;
     _userJira              = us;
     _userComment           = cmt;
     _userService           = usService;
     _projectUserRepository = project_userService;
     _taskTyperepository    = taskTyperepository;
 }
 public PriorityController(IPriorityRepository category, UserManager <IdentityUser> userManager)
 {
     _priority    = category;
     _userManager = userManager;
 }
Beispiel #7
0
 public PrioritiesController(IPriorityRepository repo)
 {
     _repository = repo;
 }
 public PriorityService(IPriorityRepository proRe,
                        IMapper mapper)
     : base(proRe, mapper)
 {
     _priorityRepository = proRe;
 }
 public PriorityController(IPriorityRepository priority)
 {
     _priority = priority;
 }
 public CommonManager(IStatusRepository statusRepository, IDifficultyRepository difficultyRepository, IPriorityRepository priorityRepository)
 {
     _StatusRepository     = statusRepository;
     _DifficultyRepository = difficultyRepository;
     _PriorityRepository   = priorityRepository;
 }
        // private readonly IMapper _mapper;

        public GetCardPriorityCommandHandler(IPriorityRepository priorityRepository)
        {
            _priorityRepository = priorityRepository;
            // _mapper = mapper;
        }
Beispiel #12
0
        static void Main(string[] args)
        {
            //List<MyTask> arr_result = new List<MyTask>();

            //Console.WriteLine("Enter repository:\n 1. SQL \n 2. XML \n 3. FAKE");
            //string s = Console.ReadLine();
            //int result = Convert.ToInt32(s);
            //if (result == 1)
            //{
            //    ITaskRepository MyTasks = new SqlTaskRepository(@"Server = localhost; user = sa; password = 1; Database = Hotel;");
            //    arr_result = MyTasks.GetAllTasks();
            //}
            //else if (result == 2)
            //{
            //    ITaskRepository MyTasks = new XmlTaskRepository(@"D:\System c#\AbstractFactory\DataSource\MyTasks.xml");
            //    arr_result = MyTasks.GetAllTasks();
            //}
            //else if (result == 3)
            //{
            //    ITaskRepository MyTasks = new FakeTaskRepository();
            //    arr_result = MyTasks.GetAllTasks();
            //}
            //else
            //{
            //    return;
            //}

            //foreach (var item in arr_result)
            //{
            //    Console.WriteLine("Task ID: {0:d}", item.TaskId);
            //}

            IRepositoryFactory Factory;

            Console.WriteLine("Enter repository:\n 1. SQL \n 2. XML \n 3. FAKE");
            string s      = Console.ReadLine();
            int    result = Convert.ToInt32(s);

            if (result == 1)
            {
                Factory = new SqlRepositoryFactory();
            }
            else if (result == 2)
            {
                Factory = new XmlRepositoryFactory();
            }
            else if (result == 3)
            {
                Factory = new FakeRepositoryFactory();
            }
            else
            {
                return;
            }


            ITaskRepository TaskRepository = Factory.CreateTaskRepository();
            List <MyTask>   tasks          = TaskRepository.GetAllTasks();

            foreach (var item in tasks)
            {
                Console.WriteLine("Task ID: {0:d}", item.TaskId);
            }


            IPriorityRepository PriorityRepository = Factory.CreatePriorityRepository();
            List <Priority>     priorities         = PriorityRepository.GetAllPriorities();

            foreach (var item in priorities)
            {
                Console.WriteLine("Priority ID: {0:d}", item.PriorityId);
            }
        }
Beispiel #13
0
 public PriorityController(IPriorityRepository BTfeatureTreeRepository)
 {
     _BTfeatureTreeRepository = BTfeatureTreeRepository;
 }
 public ValidationPrioritiesController(IPriorityRepository priorityRepository)
 {
     _priorityRepository = priorityRepository;
 }
Beispiel #15
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="repository"></param>

        public CampaignPrioritiesController(IPriorityRepository repository, IUsersRepository usersRepository)
        {
            _repository      = repository;
            _usersRepository = usersRepository;
        }
Beispiel #16
0
 public PriorityModel(IPriorityRepository priorityRepository)
 {
     this._priorityRepository = priorityRepository;
 }
Beispiel #17
0
 public GetAllPriorityQueryHandler(IPriorityRepository priorityRepository)
 {
     _priorityRepository = priorityRepository;
 }
Beispiel #18
0
 /// <summary>
 /// Konstruktor
 /// </summary>
 /// <param name="repository">Repozytorium kampanii</param>
 /// <param name="priorityRepository">Repozytorium priorytetów</param>
 /// <param name="usersRepository">Repozytorium użytkowników</param>
 public CampaignController(ICampaignRepository repository, IPriorityRepository priorityRepository, IUsersRepository usersRepository)
 {
     _repository         = repository;
     _priorityRepository = priorityRepository;
     _usersRepository    = usersRepository;
 }
Beispiel #19
0
 public PrioritiesController(IPriorityRepository priorityRepository, ISearchService searchService)
 {
     _priorityRepository = priorityRepository;
     _searchService      = searchService;
 }
Beispiel #20
0
 public PriorityService()
 {
     this.priorityRepository = new PriorityRepository();
 }
Beispiel #21
0
 public PriorityCodeService(ILogger <PriorityCodeService> logger, IPriorityRepository PriorityCodeRepo)
 {
     _logger           = logger;
     _PriorityCodeRepo = PriorityCodeRepo;
 }
Beispiel #22
0
 public PriorityController(IPriorityRepository priorityRepo)
 {
     _priorityRepo = priorityRepo;
 }
Beispiel #23
0
 public PriorityConverter(IPriorityRepository repository)
 {
     _repository = repository;
 }
Beispiel #24
0
 public PriorityService(IPriorityRepository priorityRepository)
 {
     _priorityRepository = priorityRepository;
 }
Beispiel #25
0
 public PrioritiesController()
 {
     _repository = new PriorityRepository();
 }