/// <summary> /// Constructor. /// </summary> /// <param name="usersRepository"></param> public UsersManager(IUsersRepository usersRepository, ICommonOperationsManager commonOperationsManager) { _getUsersHandlers = new GetUsersHandler[3]; InitializeHandlers(); _usersRepository = usersRepository; _commonOperationsManager = commonOperationsManager; _authBaseUrl = ConfigurationManager.AppSettings["AuthBaseUrl"]; }
/// <summary> /// Constructor. /// </summary> /// <param name="postsRepository"></param> /// <param name="storageManager"></param> public PostsManager(IPostsRepository postsRepository, IStorageManager storageManager, ICommonOperationsManager commonOperationsManager) { int numberOfPostsHandler = 5; _getPostsHandlers = new GetPostsHandler[numberOfPostsHandler]; InitializePostsHandlers(); _postsRepository = postsRepository; _storageManager = storageManager; _commonOperationsManager = commonOperationsManager; _authBaseUrl = ConfigurationManager.AppSettings["AuthBaseUrl"]; _identityBaseUrl = ConfigurationManager.AppSettings["IdentityBaseUrl"]; }
/// <summary> /// Constructor. /// </summary> /// <param name="usersManager"></param> public UsersController(IUsersManager usersManager, ICommonOperationsManager commonOperationsManager) { _usersManager = usersManager; _commonOperationsManager = commonOperationsManager; }
public NotificationsController(INotificationsManager notificationsManager, ICommonOperationsManager commonOperationsManager) { _notificationsManager = notificationsManager; _commonOperationsManager = commonOperationsManager; }
public PostsController(IPostsManager postsManager, ICommonOperationsManager commonOperationsManager) { _postsManager = postsManager; _commonOperationsManager = commonOperationsManager; }