예제 #1
0
 public AccountsController(IMapper mapper, PostgresDatabaseContext context, IWebHostEnvironment environment, IAccountRepository repo)
 {
     _repo               = repo;
     _context            = context;
     _mapper             = mapper;
     _hostingEnvironment = environment;
     _repo               = repo;
 }
예제 #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"
     });
 }
예제 #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;
 }
예제 #6
0
 public EventsController(PostgresDatabaseContext context)
 {
     _context = context;
 }
예제 #7
0
 public ArticlesController(PostgresDatabaseContext context)
 {
     _context = context;
 }
 public PostgresRepository(PostgresDatabaseContext context) : base(context)
 {
 }
예제 #9
0
 public UsersController(PostgresDatabaseContext context)
 {
     _context = context;
 }
예제 #10
0
 public CustomerRepository(PostgresDatabaseContext context) : base(context)
 {
 }
예제 #11
0
 public CompaniesController(ICompanyRepository repo, IMapper mapper, PostgresDatabaseContext context)
 {
     _repo    = repo;
     _mapper  = mapper;
     _context = context;
 }
예제 #12
0
 public CompanyRepository(PostgresDatabaseContext context,
                          IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
예제 #13
0
 public ParticipantsController(PostgresDatabaseContext context)
 {
     _context = context;
 }
예제 #14
0
 public GroupsController(PostgresDatabaseContext context)
 {
     _context = context;
 }