/// <summary> /// Initializes a new instance of the <see cref="MainViewModel"/> class. /// </summary> /// <param name="televisionService">An instance of television data service.</param> /// <param name="navigationService">An instance of application navigation service.</param> public MainViewModel(ITelevisionService televisionService, INavigationService navigationService) { this.televisionService = televisionService; this.navigationService = navigationService; this.InitializeCommands(); }
/// <summary> /// The television controller constructor /// </summary> /// <param name="televisionService" cref="ITelevisionService">The television service</param> /// <param name="logger" cref="ILogger">The NLog logger</param> /// <param name="mapper" cref="IMapper">The AutoMapper mapper</param> public TelevisionController(ITelevisionService televisionService, ILogger logger, IMapper mapper) { _televisionService = televisionService; _logger = logger; _mapper = mapper; }