예제 #1
0
 public CommentsController(TeamCommunicationDbContext context)
 {
     _context     = context;
     this.factory = new DbContextFactory();
     repo         = new CommentRepository(factory);
     query        = new GetCommentsQuery(factory.CreateDbContext);
     facade       = new CommentFacade(repo, query);
 }
예제 #2
0
 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);
 }
예제 #3
0
 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);
 }
예제 #4
0
 public AccController(TeamCommunicationDbContext context)
 {
     _context = context;
     cont     = new DbContextFactory();
 }
 public TeamCommunicationDbContextTestsClassSetupFixture()
 {
     this.TeamCommunicationDbContextSUT = CreateTeamCommunicationDbContext();
 }