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_Bpm_between_100_140() { int bpm = 100; int bpm2 = 140; ASimpleRelation BPM = new Between_Int(bpm,bpm2, Track.Property.Bpm.ToString(), Bpm.Property.Value.ToString()); IList<Track> tracksBPM = TrackSearch_Service.getTrackListing(BPM); foreach(Track track in tracksBPM) Assert.IsTrue(bpm <= track.Bpm.Value && track.Bpm.Value <= bpm2 ); this.showCount(tracksBPM); Console.WriteLine(); this.showResult(tracksBPM); Console.WriteLine(); }