public RequestsController() { DatabaseContext context = new DatabaseContext(); requestsPersister = new HelpRequestsPersister(context); usersPersister = new UsersPersister(context); }
public FriendsController() { var context = new DatabaseContext(); this.usersPersister = new UsersPersister(context); }
public UsersController() { DatabaseContext dbContext = new DatabaseContext(); this.usersPersister = new UsersPersister(dbContext); }
public HelpRequestsPersister(DatabaseContext context) { this.dbContext = context; this.usersPersister = new UsersPersister(context); }
public UsersPersister(DatabaseContext context) { this.dbContext = context; }