コード例 #1
0
        public void OLX_Process_GetCorrectRooms()
        {
            var processor = new OlxDataProcessor();

            var result = processor.Process(_data);

            Assert.AreEqual(_expectedRooms, result.Rooms);
        }
コード例 #2
0
        public void OLX_Process_GetCorrectTitle()
        {
            var processor = new OlxDataProcessor();

            var result = processor.Process(_data);

            Assert.AreEqual(_expectedTitle, result.Title);
        }
コード例 #3
0
        public void OLX_Process_GetCorrectBonusCost()
        {
            var processor = new OlxDataProcessor();

            var result = processor.Process(_data);

            Assert.AreEqual(_expectedBonusCost, result.BonusCost);
        }
コード例 #4
0
        public void OLX_Process_GetCorrectId()
        {
            var processor = new OlxDataProcessor();

            var result = processor.Process(_data);

            Assert.AreEqual(_expectedId, result.Id);
        }
コード例 #5
0
        public void OLX_Process_GetCorrectLongitude()
        {
            var processor = new OlxDataProcessor();

            var result = processor.Process(_data);

            Assert.AreEqual(_expectedLongitude, result.Longitude);
        }
コード例 #6
0
        public void OLX_Process_GetCorrectDateOfScrapping()
        {
            var processor = new OlxDataProcessor();

            var result = processor.Process(_data);

            Assert.AreEqual(DateTime.Now.ToString("dd.MM.yyyy"), result.DateOfScraping);
        }
コード例 #7
0
        public void OLX_Process_GetCorrectDateOfPosting()
        {
            var processor = new OlxDataProcessor();

            var result = processor.Process(_data);

            Assert.AreEqual(_expectedDateOfPosting, result.DateOfPosting);
        }
コード例 #8
0
        public void OLX_Process_GetCorrectDistrict()
        {
            var processor = new OlxDataProcessor();

            var result = processor.Process(_data);

            Assert.AreEqual(_expectedDistrict, result.District);
        }