コード例 #1
0
        public void Set_Score_By_Description_Specific_Word(string description)
        {
            var ad = new AdVO(1, Enums.Typology.FLAT, description, null, 0);

            ad.Should().NotBeNull();
            ad.Description.Should().NotBeNull();
            ad.Score.Should().BeGreaterOrEqualTo(15);
        }
コード例 #2
0
        public void Set_Score_By_Description_less_than_50_and_greater_than_20_Test()
        {
            var ad = new AdVO(1, Enums.Typology.FLAT, "Test Description with minimun 49 characters CH", null, 0);

            ad.Should().NotBeNull();
            ad.Description.Should().NotBeNull();
            ad.Score.Should().BeGreaterOrEqualTo(15);
        }
コード例 #3
0
        public void Set_Score_By_Description_more_than_50_Chalet_Test()
        {
            var ad = new AdVO(1, Enums.Typology.FLAT, "Test Description with minimun 49 characters CHALET", null, 0);

            ad.Should().NotBeNull();
            ad.Description.Should().NotBeNull();
            ad.Score.Should().BeGreaterOrEqualTo(25);
        }
コード例 #4
0
        public void Set_Score_By_Description_Test()
        {
            var ad = new AdVO(1, Enums.Typology.CHALET, "Test Description", null, 0);

            ad.Should().NotBeNull();
            ad.Description.Should().NotBeNull();
            ad.Score.Should().BeGreaterOrEqualTo(5);
        }
コード例 #5
0
        public void Set_Min_Score_By_No_Picture_Test()
        {
            var ad = new AdVO(1, Enums.Typology.CHALET, "Test Description", null, 100);

            ad.Should().NotBeNull();
            ad.PictureIds.Should().BeNullOrEmpty();
            ad.Score.Should().BeGreaterOrEqualTo(5);
        }
コード例 #6
0
        public void Set_Score_By_Pictures_Test()
        {
            var ad = new AdVO(1, Enums.Typology.CHALET, "Test Description", new List <int>()
            {
                1, 2
            }, 100);

            ad.Should().NotBeNull();
            ad.Score.Should().BeGreaterOrEqualTo(40);
        }
コード例 #7
0
        public void Set_Score_By_Full_Data_Test(Enums.Typology typology, int homeSize, int gardenSize)
        {
            var ad = new AdVO(1, typology, "Test Description with minimun 49 characters CHALET", new List <int> {
                1, 2
            }, homeSize, gardenSize);

            ad.Should().NotBeNull();
            ad.Description.Should().NotBeNull();
            ad.Score.Should().BeGreaterOrEqualTo(40);
        }
コード例 #8
0
        public void Not_Empty_Success_Test()
        {
            var ad = new AdVO(1, Enums.Typology.CHALET, "Test Description", new List <int>(), 100);

            ad.Should().NotBeNull();
        }