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); }
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); }
public SubmitController(ICategoryRepository iCategoryRepo, IPostrepository iPostRepo, IAuraRepository iAuraRepo) { _categoryLogic = new CategoryLogic(iCategoryRepo); _postLogic = new PostLogic(iPostRepo); _auraLogic = new AuraLogic(iAuraRepo); }
public void Initialize() { _mockAuraRepo = new MockAuraRepository(); _auraLogic = new AuraLogic(_mockAuraRepo); }