Exemple #1
0
 public AccountsController(IMapper mapper, PostgresDatabaseContext context, IWebHostEnvironment environment, IAccountRepository repo)
 {
     _repo               = repo;
     _context            = context;
     _mapper             = mapper;
     _hostingEnvironment = environment;
     _repo               = repo;
 }
Exemple #2
0
 /**
  * Data that gets generated by test things
  */
 public static void PopulateTestData(PostgresDatabaseContext dbContext)
 {
     dbContext.Accounts.Add(new Account
     {
         Email      = "*****@*****.**",
         FirstName  = "Oetze",
         MiddleName = "van den",
         LastName   = "Broek"
     });
 }
Exemple #3
0
 public ImagesController(IMapper mapper,
                         PostgresDatabaseContext context,
                         IWebHostEnvironment environment,
                         IAccountRepository accountRepo,
                         ICompanyRepository companyRepo)
 {
     _mapper             = mapper;
     _context            = context;
     _hostingEnvironment = environment;
     _accountRepo        = accountRepo;
     _companyRepo        = companyRepo;
 }
 public PermissionRolesController(IMapper mapper, PostgresDatabaseContext context)
 {
     _mapper  = mapper;
     _context = context;
 }
 public TodoRepository(PostgresDatabaseContext context)
 {
     _context = context;
 }
Exemple #6
0
 public EventsController(PostgresDatabaseContext context)
 {
     _context = context;
 }
Exemple #7
0
 public ArticlesController(PostgresDatabaseContext context)
 {
     _context = context;
 }
 public PostgresRepository(PostgresDatabaseContext context) : base(context)
 {
 }
Exemple #9
0
 public UsersController(PostgresDatabaseContext context)
 {
     _context = context;
 }
Exemple #10
0
 public CustomerRepository(PostgresDatabaseContext context) : base(context)
 {
 }
 public CompaniesController(ICompanyRepository repo, IMapper mapper, PostgresDatabaseContext context)
 {
     _repo    = repo;
     _mapper  = mapper;
     _context = context;
 }
Exemple #12
0
 public CompanyRepository(PostgresDatabaseContext context,
                          IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Exemple #13
0
 public ParticipantsController(PostgresDatabaseContext context)
 {
     _context = context;
 }
Exemple #14
0
 public GroupsController(PostgresDatabaseContext context)
 {
     _context = context;
 }