Example #1
0
 public UnitOfWork(ApplicationDBContext context)
 {
     this.context = context;
     Users        = new UserRepository(context);
     Walls        = new WallRepository(context);
     Sensors      = new SensorRepository(context);
     Materials    = new MaterialRepository(context);
 }
Example #2
0
 public UserController(
     UserRepository userRepository,
     FeedRepository feedRepository,
     WallRepository wallRepository,
     PostRepository postRepository)
 {
     _userRepository = userRepository;
     _feedRepository = feedRepository;
     _wallRepository = wallRepository;
     _postRepository = postRepository;
 }
Example #3
0
 public CircleController(CircleRepository circleRepository, UserRepository userRepository, WallRepository wallRepository)
 {
     _circleRepository = circleRepository;
     _userRepository   = userRepository;
     _wallRepository   = wallRepository;
 }
Example #4
0
 public DecorativeColumnHandler(GridRepository gridRepository)
 {
     //this.wallHandler = new WallHandler(gridRepository);
     this.wallRepository             = new WallRepository(gridRepository);
     this.decorativeColumnRepository = new DecorativeColumnRepository(gridRepository);
 }
Example #5
0
 public WallController()
 {
     wallReppo = new WallRepository();
 }
Example #6
0
 public PostController(PostRepository postRepository, WallRepository wallRepository, CommentRepository commentRepository)
 {
     _postRepository    = postRepository;
     _wallRepository    = wallRepository;
     _commentRepository = commentRepository;
 }
Example #7
0
 public WallController()
 {
     wallFactory    = new WallRepository();
     messageFactory = new MessageRepository();
     commentFactory = new CommentRepository();
 }
Example #8
0
 public WallController(WallRepository wallRepository, FeedRepository feedRepository, UserRepository userRepository)
 {
     _wallRepository = wallRepository;
     _feedRepository = feedRepository;
     _userRepository = userRepository;
 }