public PhoneWithAllFunctions(IPhone phone) { _phone = phone; _camera = new Camera(phone); _internet = new Internet(phone); _navigate = new NavigatePhone(phone); }
public static bool estarConectado() { if (_internet == null) { _internet = DependencyService.Get <IInternet>(); } return(_internet.estarConectado()); }
public LoginEveryTimeBehaviour(ILoggerWrapper logger, ITokenService tokenService, IAuthenticationClient client, IInternet internet, ISessionService session, IUnitOfWork work, ICommunicationTypeClient communication, ICommunicationTypeService communicationTypeService) : base(logger, tokenService, client, internet, session, work, communication, communicationTypeService) { }
public ProcessCollectorBehaviour(IProcessCollectorFactory processFactory, ISynchronizationClientFactory syncFactory, IUnitOfWork unitOfWork, IInternet internet, ISessionService session, ILoggerWrapper wrapper, IDateTime dateTime, INotificationService notification) : base(syncFactory, unitOfWork, internet, session, wrapper, dateTime, notification) { _processFactory = processFactory; }
public ProxyInternet() { Console.WriteLine("ProxyClient: Initialized"); BannedSites = new List <string>(); BannedSites.Add("abc.com"); BannedSites.Add("def.com"); BannedSites.Add("ijk.com"); BannedSites.Add("lnm.com"); RealInternet = new RealInternet(); }
public SyncBehaviour(IInternet internet, IUnitOfWork unitOfWork, ILoggerWrapper logger, ISynchronizationClientFactory factory, ISessionService sessionService, IDateTime time, INotificationService notification) { _time = time; _internet = internet; _logger = logger; _factory = factory; _sessionService = sessionService; _unitOfWork = unitOfWork; _notification = notification; }
public CommunicationTypeCheckBehaviour(ICommunicationTypeClient communication, ICommunicationTypeService communicationTypeService, IInternet internet, ILoggerWrapper wrapper, IDateTime dateTime, ISessionService session, INotificationService notification) { _communication = communication; _communicationTypeService = communicationTypeService; _logger = wrapper; _time = dateTime; _internet = internet; _session = session; _notification = notification; }
protected CommonCollectorBehaviour( ISynchronizationClientFactory syncFactory, IUnitOfWork unitOfWork, IInternet internet, ISessionService session, ILoggerWrapper wrapper, IDateTime dateTime, INotificationService notification) { _syncFactory = syncFactory; _unitOfWork = unitOfWork; _internet = internet; _session = session; _logger = wrapper; _time = dateTime; _notification = notification; }
protected LoginBehaviourRoot(ILoggerWrapper logger, ITokenService tokenService, IAuthenticationClient client, IInternet internet, ISessionService session, IUnitOfWork work, ICommunicationTypeClient communication, ICommunicationTypeService communicationTypeService) { _logger = logger; _tokenService = tokenService; _client = client; _internet = internet; _session = session; _work = work; _communication = communication; _communicationTypeService = communicationTypeService; }
/// <summary> /// Creates a new data source connected to RacingPost.com. /// </summary> /// <param name="internet">An object this class can use to connect to the internet, e.g. `Internet`.</param> public RacingPostDataSource(IInternet internet) { this.internet = internet; }
/// <summary> /// Creates a new data source connected to RacingPost.com. /// </summary> /// <param name="internet">An object this class can use to connect to the internet, e.g. `Internet`.</param> public RacingPostDataSource(IInternet internet) { this.internet = internet; }
public PhoneWithCameraAndInternet(IPhone phone) { _phone = phone; _camera = new Camera(phone); _internet = new Internet(phone); }