public void TestSearchEngine() { var repo = new FieldsRepository() {Context = AccessContext.Create()}; var fields = repo.FullSearchAsync(new FilterOptionModel() { date = new DateTime(2015, 7, 10, 11, 0, 0), end = new DateTime(2015, 7, 11, 11, 0, 0), keywords = "", }).Result; Assert.IsNotNull(fields); }
public void TestFullSearch() { var context = AccessContext.Create(); var repository = new FieldsRepository {Context = context}; var fullSearch = repository.FullSearchAsync(new FilterOptionModel { lat = "13.720858499999999", lon = "-89.2304515", }).Result; Assert.IsNotNull(fullSearch); }