Esempio n. 1
0
 /// <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"];
 }
Esempio n. 2
0
        /// <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"];
        }
Esempio n. 3
0
 /// <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;
 }
Esempio n. 5
0
 public PostsController(IPostsManager postsManager, ICommonOperationsManager commonOperationsManager)
 {
     _postsManager            = postsManager;
     _commonOperationsManager = commonOperationsManager;
 }