/// <summary>
 /// Initializes a new instance of the <see cref="FavoriteController"/> class.
 ///     Contrutor padrão do FavoriteController.
 /// </summary>
 /// <param name="appService">Application de serviço</param>
 /// <param name="loggerFactory">Factory de gerenciamento de logs</param>
 public FavoriteController(
     IFavoriteAppService appService,
     ILoggerFactory loggerFactory)
 {
     this.appService = appService;
     this.logger     = loggerFactory.CreateLogger <FavoriteController>();
 }
Exemple #2
0
        /// <summary>
        /// Create a new instance RegisterController api
        /// </summary>
        public FavoriteController(IFavoriteAppService favoriteAppService)
        {
            if (favoriteAppService == null)
            {
                throw new ArgumentNullException("favoriteAppService");
            }

            this._favoriteAppService = favoriteAppService;
        }
Exemple #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TouristSpotController"/> class.
        ///     Contrutor padrão do TouristSpotController.
        /// </summary>
        /// <param name="appService">Application de serviço</param>
        /// <param name="loggerFactory">Factory de gerenciamento de logs</param>
        public TouristSpotController(
            ITouristSpotAppService appService,
            ICommentAppService commentAppService,
            IFavoriteAppService favoriteAppService,
            IPictureAppService pictureAppService,
            IVoteAppService voteAppService,
            ILoggerFactory loggerFactory)
            : base(appService)
        {
            this.appService         = appService;
            this.commentAppService  = commentAppService;
            this.favoriteAppService = favoriteAppService;
            this.pictureAppService  = pictureAppService;
            this.voteAppService     = voteAppService;

            this.logger = loggerFactory.CreateLogger <TouristSpotController>();
        }