public AccountController(IUserRepository iUserRepo, IAuraRepository iAuraRepo, ICategoryRepository iCategoryRepo, IPostrepository iPostRepo)
 {
     _accountLogic  = new UserLogic(iUserRepo);
     _auraLogic     = new AuraLogic(iAuraRepo);
     _categoryLogic = new CategoryLogic(iCategoryRepo);
     _postLogic     = new PostLogic(iPostRepo);
 }
Example #2
0
 public void Initialize()
 {
     _mockPostRepo     = new MockPostRepository();
     _postLogic        = new PostLogic(_mockPostRepo);
     _mockAuraRepo     = new MockAuraRepository();
     _auraLogic        = new AuraLogic(_mockAuraRepo);
     _mockUserRepo     = new MockUserRepository();
     _userLogic        = new UserLogic(_mockUserRepo);
     _mockCategoryRepo = new MockCategoryRepository();
     _categoryLogic    = new CategoryLogic(_mockCategoryRepo);
 }
Example #3
0
 public SubmitController(ICategoryRepository iCategoryRepo, IPostrepository iPostRepo, IAuraRepository iAuraRepo)
 {
     _categoryLogic = new CategoryLogic(iCategoryRepo);
     _postLogic     = new PostLogic(iPostRepo);
     _auraLogic     = new AuraLogic(iAuraRepo);
 }
Example #4
0
 public void Initialize()
 {
     _mockAuraRepo = new MockAuraRepository();
     _auraLogic    = new AuraLogic(_mockAuraRepo);
 }