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); }
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); }