public IQueryable Get(ODataQueryOptions <Child> options) { var results = this.Session.Query <Child>(); var filtered = options.ApplyTo(results); filtered = FixOdataQueryAttribute.ApplyFixWithoutGeneric(filtered); return(filtered); }
public void When_applying_fixes_statically_Then_works() { var data = TestData.GetTestChildren(); var results = FixOdataQueryAttribute.ApplyFix(data).ToList(); Assert.That(results, Has.Count.EqualTo(1)); var results2 = FixOdataQueryAttribute.ApplyFixWithoutGeneric(data).Cast <object>().ToList(); Assert.That(results2, Has.Count.EqualTo(1)); }