public void DoScan_x_y()
        {
            //Arrange
            Rx1.Scanner scan = new Rx1.Scanner();

            //Act
            Rx1.Scanner.DoScan();

            //Assert
            output.WriteLine("DoScan: " + null);
        }
        public void GetNumbersObs_x_y()
        {
            //Arrange
            Rx1.Scanner scan = new Rx1.Scanner();

            //Act
            IObservable <string> result = Rx1.Scanner.GetNumbersObs();
            var disp = result.Subscribe(new OutputObserver(output));

            //Assert
            Assert.NotNull(result);
        }
        public void GetNumbers_x_y()
        {
            //Arrange
            Rx1.Scanner scan = new Rx1.Scanner();

            //Act
            string result = Rx1.Scanner.GetNumbers();

            //Assert
            output.WriteLine("result: " + result);
            Assert.NotEmpty(result);
        }
        public void GetPages_x_y()
        {
            //Arrange
            Rx1.Scanner scan = new Rx1.Scanner();

            //Act
            IObservable <string> result = Rx1.Scanner.GetPages(DateTime.Today.AddDays(-5))
                                          .Select(pageTup => pageTup?.ToString());
            var disp = result.Subscribe(new OutputObserver(output));

            //Assert
            Assert.NotNull(result);
        }
        public void GetDates_x_y()
        {
            //Arrange
            Rx1.Scanner scan = new Rx1.Scanner();

            //Act
            IObservable <string> result = Rx1.Scanner.GetDates()
                                          .Select(dt => dt.ToString());
            var disp = result.Subscribe(new OutputObserver(output));

            //Assert
            Assert.NotNull(result);
        }
        public void GetPagesList_Observable_List()
        {
            //Arrange
            Rx1.Scanner scan    = new Rx1.Scanner();
            PageRequest request = new PageRequest("url", "chan1",
                                                  DateTime.Today.AddDays(-2),
                                                  DateTime.Today.AddDays(0),
                                                  DateTime.Now.AddDays(-7));

            //Act
            IEnumerable <PageQR> pages = Rx1.Scanner.GetPagesList(request);

            //Assert
            output.WriteLine(ToString(pages));
            Assert.NotNull(pages);
            Assert.NotEmpty(pages);
        }
        public void GetPagesQR_Observable_Output()
        {
            //Arrange
            Rx1.Scanner scan    = new Rx1.Scanner();
            PageRequest request = new PageRequest("url", "chan1",
                                                  DateTime.Today.AddDays(-2),
                                                  DateTime.Today.AddDays(0),
                                                  DateTime.Now.AddDays(-7));

            //Act
            IObservable <string> pages = Rx1.Scanner.GetPagesQR(request)
                                         .Select(pageTup => pageTup?.ToString());
            var disp = pages.Subscribe(new OutputObserver(output));

            //Assert
            Assert.NotNull(pages);
            Assert.NotEmpty(output.ToString());
            //Assert.Contains("OnNext:\r\nRequest: ModifAfter: 10.04.2017", output.ToString());
        }