Exemplo n.º 1
0
        public NewsfeedPresenter(INewsfeedView view, INewsDataService newsDataService)
            : base(view)
        {
            Guard.WhenArgument(newsDataService, "newsDataService").IsNull().Throw();

            this.newsDataService = newsDataService;

            this.View.EventAddNews          += this.AddNews;
            this.View.EventBindNewsfeedData += this.BindNewsfeedData;
        }
 public NewsBusinessService(INewsDataService dataService)
 {
     _dataService = dataService;
 }