/// <summary> /// Initializes a new instance of the <see cref="UntisExp.Fetcher"/> class which is pre-equipped for background operation. Will surpress all rows which do not contain a timetable element, e.g. the date row. Useful for background services. /// </summary> /// <param name="mode">The mode of operation: MODE 0: Nur heute, MODE 1: Nur Morgen, MODE 2: Beide, MODE 5: Alles</param> /// <param name="networkAccessor">For testing purposes only. Will inject a <see cref="INetworkAccessor"/> into the class</param> // ReSharper disable once UnusedMember.Global public Fetcher(int mode, INetworkAccessor networkAccessor = null) { _mode = mode; _silent = true; if (networkAccessor == null) networkAccessor = new Networking(); _networkAccessor = networkAccessor; }
/// <summary> /// Creates a new Press object /// </summary> /// <param name="networkAccessor">For testing purposes only. Will inject a <see cref="INetworkAccessor"/> into the class</param> public Press(INetworkAccessor networkAccessor = null) { if (networkAccessor == null) networkAccessor = new Networking(); _networkAccessor = networkAccessor; }
/// <summary> /// Initializes a new instance of the <see cref="UntisExp.Fetcher"/> class. /// </summary> /// <param name="networkAccessor">For testing purposes only. Will inject a <see cref="INetworkAccessor"/> into the class</param> public Fetcher(INetworkAccessor networkAccessor = null) { if (networkAccessor == null) networkAccessor = new Networking(); _networkAccessor = networkAccessor; }