Пример #1
0
        public void beforTest()
        {
            ARelation r5 = new Between_Int(1, 2, "a", "b");
            ARelation r6 = new Between_String("a", "b", "c", "d");
            ARelation r3 = new IntSearch(1234, "a", "b");
            ARelation r4 = new EndingAttributeSearch(Ending.Attribute.Cold, "a", "b");
            ARelation r1 = new StringSearch("a", "b", "c");
            ARelation r2 = new ComplexRelation();

            rArray = new ARelation[4] { r1, r2, r3, r4 };
        }
        public void can_search_Laenge_between_4_00_and_5_00()
        {
            string l1 = "4:00";
            string l2 = "5:00";

            ASimpleRelation r = new Between_String(l1, l2, Track.Property.Laenge.ToString(), Laenge.Property.Dauer.ToString());
            IList<Track> tracks = TrackSearch_Service.getTrackListing(r);

            this.showCount(tracks);
            Console.WriteLine();
            this.showResult(tracks);
            Console.WriteLine();
        }