public CommentsController(TeamCommunicationDbContext context) { _context = context; this.factory = new DbContextFactory(); repo = new CommentRepository(factory); query = new GetCommentsQuery(factory.CreateDbContext); facade = new CommentFacade(repo, query); }
public UsersController(TeamCommunicationDbContext context) { _context = context; this.factory = new DbContextFactory(); this.repo = new UserRepository(factory); this.query = new GetUsersQuery(factory.CreateDbContext); facade = new UserFacade(repo, query); }
public TeamsController(TeamCommunicationDbContext context) { _context = context; this.factory = new DbContextFactory(); this.query = new GetTeamsQuery(factory.CreateDbContext); this.topicRepo = new TopicRepository(factory); this.repo = new TeamRepository(factory); this.facade = new TeamFacade(repo, query); }
public AccController(TeamCommunicationDbContext context) { _context = context; cont = new DbContextFactory(); }
public TeamCommunicationDbContextTestsClassSetupFixture() { this.TeamCommunicationDbContextSUT = CreateTeamCommunicationDbContext(); }