예제 #1
0
 public HomeController(IConfigApi configApi,
                       IContentApi contentApi)
 {
     _configApi  = configApi;
     _contentApi = contentApi;
     SetDataLayerVariables("", WebhookEventTypes.CollectionViewed);
 }
 /// <summary>
 /// Constructor for tests only
 /// </summary>
 public ArticleController(IContentApi contentApi, IList <Section> sections)
 {
     _contentApi        = contentApi;
     this.SavedArticles = new ObservableCollection <Article>();
     this.Sections      = sections;
     _imageDownloader   = new ImageDownloader();
 }
 public ArticleController()
 {
     _contentApi        = new ContentApi();
     this.SavedArticles = new ObservableCollection <Article>();
     this.Sections      = new List <Section>();
     _imageDownloader   = new ImageDownloader();
 }
예제 #4
0
 public CommonController(IContentApi contentApi, IBasketApi basketApi, IAuthenticationService authenticationService)
 {
     _contentApi            = contentApi;
     _basketApi             = basketApi;
     _authenticationService = authenticationService;
 }