Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="VikingPointsViewModel" /> class.
        /// </summary>
        /// <param name="vikingPoints">The viking points.</param>
        /// <param name="authorizationService">The authorization service.</param>
        /// <param name="resourceLoader">The resource loader.</param>
        /// <param name="navigationService">The navigation service.</param>
        /// <exception cref="System.ArgumentNullException"></exception>
        public VikingPointsViewModel(IVikingPoints vikingPoints, IAuthorizationService authorizationService, ResourceLoader resourceLoader, INavigationService navigationService)
            : base(authorizationService, resourceLoader, navigationService)
        {
            if (vikingPoints == null)
            {
                throw new ArgumentNullException("mobileNumbers");
            }

            _vikingPoints = vikingPoints;
            HandleNoInternet();
            LoadVikingPoints();
        }
Ejemplo n.º 2
0
 public void Initialize()
 {
     _repository = new VikingPoints();
 }