Exemple #1
0
        public void FilterByValidDescription()
        {
            var api     = new Mock <ITourApi>().Object;
            var handler = new Mock <IImportExportHandler>().Object;
            var filter  = new GeneralFilter();
            var tp      = new TourPlannerClient(api, handler, filter);

            tp.UpdateFilter("ed diam nonumy");
            var ok = tp.FilterMethod(tour);

            Assert.IsTrue(ok);
        }
Exemple #2
0
        public void FilterByInvalidRating()
        {
            var api     = new Mock <ITourApi>().Object;
            var handler = new Mock <IImportExportHandler>().Object;
            var filter  = new GeneralFilter();
            var tp      = new TourPlannerClient(api, handler, filter);

            tp.UpdateFilter("Terrible");
            var ok = tp.FilterMethod(tour);

            Assert.IsFalse(ok);
        }