public AccountController(UserManager<User> userManager, SignInManager<User> signInManager , ICategorieRepository categorieRepository , INotificationRepository notificationRepository) { this.userManager = userManager; this.signInManager = signInManager; this.categorieRepository = categorieRepository; this.notificationRepository = notificationRepository; }
public CnssService(ICategorieRepository categorieRepository, IDeclarationCnssRepository declarationCnssRepository, ILigneCnssRepository ligneCnssRepository, IEmployeeRepository employeeRepository) { if (categorieRepository == null) { throw new ArgumentNullException(nameof(categorieRepository)); } if (declarationCnssRepository == null) { throw new ArgumentNullException(nameof(declarationCnssRepository)); } if (ligneCnssRepository == null) { throw new ArgumentNullException(nameof(ligneCnssRepository)); } if (employeeRepository == null) { throw new ArgumentNullException(nameof(employeeRepository)); } _categorieRepository = categorieRepository; _declarationCnssRepository = declarationCnssRepository; _ligneCnssRepository = ligneCnssRepository; _employeeRepository = employeeRepository; }
public ManageController( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IEmailSender emailSender, ILogger <ManageController> logger, UrlEncoder urlEncoder, ICategorieRepository categorieRepository, IGebruikerRepository gebruikerRepository, IBestellingRepository bestellingRepository, IBestellijnRepository bestellijnRepository, IHandelaarRepository handelaarRepository, IBonRepository bonRepository) { _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _logger = logger; _urlEncoder = urlEncoder; _categorieRepository = categorieRepository; _gebruikerRepository = gebruikerRepository; _bestellingRepository = bestellingRepository; _bestellijnRepository = bestellijnRepository; _handelaarRepository = handelaarRepository; _bonRepository = bonRepository; }
public MainWindow() { InitializeComponent(); employeeRepository = new EmployeeRepositoryImpl(db); orderRepository = new OrderRepositoryImpl(db); clientRepository = new ClientRepositoryImpl(db); productRepository = new ProductRepositoryImpl(db); manufacturerRepository = new ManufacturerRepositoryImpl(db); roleRepository = new RoleRepositoryImpl(db); rankRepository = new RankRepositoryImpl(db); categorieRepository = new CategoyRepositoryImpl(db); paymentRepository = new PaymentRepositoryImpl(db); paymentModeRepositoy = new PaymentModeRepositoryImpl(db); userRepository = new UserRepositoryImpl(db); EmployeesDataGrid.ItemsSource = employeeRepository.GetAll(); OrdersDataGrid.ItemsSource = orderRepository.GetAll(); ClientsDataGrid.ItemsSource = clientRepository.GetAll(); ProductsDataGrid.ItemsSource = productRepository.GetAll(); ManufacturerDataGrid.ItemsSource = manufacturerRepository.GetAll(); PaymentsDataGrid.ItemsSource = paymentRepository.GetAll(); CategoriesDataGrid.ItemsSource = categorieRepository.GetAll(); UsersDataGrid.ItemsSource = userRepository.GetAll(); }
public InMemoryPiRepository( ILogger <InMemoryPiRepository> logger, IAdresseRepository adresseRepository, ICategorieRepository categorieRepository ) : base(logger) { _adresseRepository = adresseRepository; _categorieRepository = categorieRepository; }
public EchipamentController(IEchipamentRepository echipamentRepository, IEchipamentCategorieRepository echipamentCategorieRepository, ICategorieRepository categorieRepository, IMagazinEchipamentRepository magazinEchipamentRepository, IMagazinRepository magazinRepository) { IEchipamentRepository = echipamentRepository; IEchipamentCategorieRepository = echipamentCategorieRepository; ICategorieRepository = categorieRepository; IMagazinEchipamentRepository = magazinEchipamentRepository; IMagazinRepository = magazinRepository; }
public CategorieRepositoryTest() { var dbOptions = new DbContextOptionsBuilder <NetCoreAppContext>() .UseInMemoryDatabase(databaseName: "TestNetCoreAppCategorie") .Options; _dbContext = new NetCoreAppContext(dbOptions); _categorieRepository = new CategorieRepository(_dbContext); }
public CheckoutController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, ICategorieRepository categorieRepository, IGebruikerRepository gebruikerRepository, IBonRepository bonRepository, IBestellingRepository bestellingRepository, IBestellijnRepository bestellijnRepository, IHandelaarRepository handelaarRepository) { _userManager = userManager; _signInManager = signInManager; _categorieRepository = categorieRepository; _gebruikerRepository = gebruikerRepository; _bonRepository = bonRepository; _bestellingRepository = bestellingRepository; _bestellijnRepository = bestellijnRepository; _handelaarRepository = handelaarRepository; }
public static void Add(ICategorieRepository categorieRepository, User user) { categorieRepository.SaveCategorie(new Categorie { Name = "Home", User = user, IsExpense = true }); categorieRepository.SaveCategorie(new Categorie { Name = "Expense", User = user, IsExpense = true }); categorieRepository.SaveCategorie(new Categorie { Name = "Income", User = user, IsExpense = false }); }
public PointInteretController( ILogger <PointInteretController> logger, IPointInteretRepository repository, ICategorieRepository categorieRepo, ICommuneRepository communeRepo, IAdresseRepository adresseRepo) : base(logger, repository) { _categorieRepo = categorieRepo; _communeRepo = communeRepo; _adresseRepo = adresseRepo; }
public SeedData( ApplicationDbContext context, IPIRepository PIRepository, IAdresseRepository adresseRepository, ICategorieRepository categorieRepository, ICommuneRepository communeRepository, IDepartementRepository departementRepository) { _context = context; _PIRepository = PIRepository; _adresseRepository = adresseRepository; _communeRepository = communeRepository; _categorieRepository = categorieRepository; _departementRepository = departementRepository; }
public EFRepositoryTest() { var dbOptions = new DbContextOptionsBuilder <NetCoreAppContext>() .UseInMemoryDatabase(databaseName: "TestNetCoreAppEF") .Options; _dbContext = new NetCoreAppContext(dbOptions); _categorieRepository = new CategorieRepository(_dbContext); _categories = new List <Categorie>(); for (int i = 1; i <= NOMBRE_INSERTION; i++) { _categorie = new Categorie(i, "Teeshirt " + i); _categories.Add(_categorie); } }
protected void Page_Init(object sender, EventArgs e) { if (SessionHasValue(Enums.CommonSession.UserActionPopUpInPopUp)) { userAction = GetIntValueFromSession(Enums.CommonSession.UserActionPopUpInPopUp); } else { userAction = GetIntValueFromSession(Enums.CommonSession.UserActionPopUp); } categorieID = GetIntValueFromSession(Enums.CategorieSession.CategorieID); session = XpoHelper.GetNewSession(); categorieRepo = new CategorieRepository(session); }
public AccountController( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IEmailSender emailSender, ILogger <AccountController> logger, ICategorieRepository categorieRepository, IGebruikerRepository gebruikerRepository, IHandelaarRepository handelaarRepository) { _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _logger = logger; _categorieRepository = categorieRepository; _gebruikerRepository = gebruikerRepository; _handelaarRepository = handelaarRepository; }
public SeedData( ApplicationDbContext context, ILogger <SeedData> logger, IPiRepository piRepository, ICategorieRepository categorieRepository, IAdresseRepository adresseRepository, ICommuneRepository communeRepository, IDepartementRepository departementRepository) { _context = context; _logger = logger; _piRepository = piRepository; _categorieRepository = categorieRepository; _communeRepository = communeRepository; _adresseRepository = adresseRepository; _departementRepository = departementRepository; }
public DeliveryNoteRepository(Session session = null) { if (session == null) { this.session = XpoHelper.GetNewSession(); } else { this.session = session; } measureRepo = new MeasuringUnitRepository(session); productRepo = new ProductRepository(session); locationRepo = new LocationRepository(session); categoryRepo = new CategorieRepository(session); clientRepo = new ClientRepository(session); userRepo = new UserRepository(session); }
protected void Page_Init(object sender, EventArgs e) { userAction = GetIntValueFromSession(Enums.CommonSession.UserActionPopUp); productID = GetIntValueFromSession(Enums.ProductSession.ProductID); session = XpoHelper.GetNewSession(); productRepo = new ProductRepository(session); clientRepo = new ClientRepository(session); categoryRepo = new CategorieRepository(session); measuringUnitRepo = new MeasuringUnitRepository(session); XpoDSSupplier.Session = session; XpoDSCategory.Session = session; XpoDSMeasuringUnit.Session = session; GridLookupSupplier.GridView.Settings.GridLines = GridLines.Both; GridLookupCategory.GridView.Settings.GridLines = GridLines.Both; GridLookupMeasuringUnit.GridView.Settings.GridLines = GridLines.Both; }
public EchipamentDetailsDTO Get(int id) { Echipament Echipament = IEchipamentRepository.Get(id); EchipamentDetailsDTO MyEchipament = new EchipamentDetailsDTO() { NumeEchipament = Echipament.NumeEchipament, Pret = Echipament.Pret, Descriere = Echipament.Descriere, AnAparitie = Echipament.AnAparitie, Specificatii = Echipament.Specificatii, ProducatorId = Echipament.ProducatorId, img = Echipament.img }; IEnumerable <EchipamentCategorie> MyEchipamentCategories = IEchipamentCategorieRepository.GetAll().Where(x => x.EchipamentId == Echipament.Id); if (MyEchipamentCategories != null) { List <string> CategorieNumeList = new List <string>(); foreach (EchipamentCategorie myechipamentCategorie in MyEchipamentCategories) { Categorie myCategorie = ICategorieRepository.GetAll().SingleOrDefault(X => X.Id == myechipamentCategorie.CategorieId); CategorieNumeList.Add(myCategorie.NumeCategorie); } MyEchipament.NumeCategorie = CategorieNumeList; } IEnumerable <MagazinEchipament> MyMagazinEchipaments = IMagazinEchipamentRepository.GetAll().Where(x => x.EchipamentId == Echipament.Id); if (MyMagazinEchipaments != null) { List <string> MagazinNumeList = new List <string>(); foreach (MagazinEchipament mymagazinEchipament in MyMagazinEchipaments) { Magazin myMagazin = IMagazinRepository.GetAll().SingleOrDefault(X => X.Id == mymagazinEchipament.MagazinId); MagazinNumeList.Add(myMagazin.Nume); } MyEchipament.Nume = MagazinNumeList; } return(MyEchipament); }
public SeedData( ApplicationDbContext context, ILogger <SeedData> logger, ICityRepository cityRepository, IPersonRepository personRepository, ICommuneRepository communeRepository, ICategorieRepository categorieRepository, IPointInteretRepository pointInteretRepository, IAdresseRepository adresseRepository, IDepartementRepository departementRepository) { _context = context; _logger = logger; _cityRepository = cityRepository; _personRepository = personRepository; _communeRepository = communeRepository; _categorieRepository = categorieRepository; _pointInteretRepository = pointInteretRepository; _adresseRepository = adresseRepository; _departementRepository = departementRepository; }
public CategorieController( ILogger <CategorieController> logger, ICategorieRepository repository) : base(logger, repository) { }
public CategorieService(ICategorieRepository categorieRepository, IUnitOfWork unitOfWork) { this.categorieRepository = categorieRepository; this.unitOfWork = unitOfWork; }
public CategoryController(ICategorieRepository categorieRepository) { _categorieRepository = categorieRepository; }
public CertificationController(ICertificationRepository certificationRepository, ICategorieRepository categorieRepository, IWebHostEnvironment hostingEnvironment) { this.certificationRepository = certificationRepository; this.categorieRepository = categorieRepository; this.hostingEnvironment = hostingEnvironment; }
public TransactionController(ITransactionRepository transactionRepository, ICategorieRepository categorieRepository, UserManager <User> userManager) { this.userManager = userManager; this.transactionRepository = transactionRepository; this.categorieRepository = categorieRepository; }
public HomeController(IBonRepository bonRepository, ICategorieRepository categorieRepository, IHandelaarRepository handelaarRepository) { _bonRepository = bonRepository; _categorieRepository = categorieRepository; _handelaarRepository = handelaarRepository; }
public CategorieController(ICategorieRepository repository) : base(repository) { }
public BDliotheque(IUtilisateurRepository utilisateurRepository, IAlbumRepository albumRepository, ICategorieRepository categorieRepository, IGenreRepository genreRepository) { InitializeComponent(); this.utilisateurRepository = utilisateurRepository; this.albumRepository = albumRepository; /* this.genreRepository = genreRepository; * this.categorieRepository = categorieRepository;*/ utilisateur = utilisateurRepository.GetAll()[0]; albums = albumRepository.GetAll(); categories = categorieRepository.GetAll(); genres = genreRepository.GetAll(); Ouvrir_Connexion(); AfficherTousAlbums(); }
public CategorieController(ICategorieRepository categorierepository) { this.categorierepository = categorierepository; }
public CategoriesController(ICategorieRepository categorieRepository, IMapper mapper) { this.categorieRepository = categorieRepository; Mapper = mapper; }
public CategorieController(ICategorieRepository repository) { ICategorieRepository = repository; }