private IEnumerable<Unicorn> ApplQueryToHandler(string queryValue) { var handler = new NumericHandler<Unicorn>(); var prop = Unicorns.GetProperty(u => u.HornLenght); var q = PropertyQuery.Create(prop.Name, queryValue); return handler.ApplyQuery(Unicorns.All, prop, q); }
public void NumericHandlerTest(double testValue, string expectedValue) { var numericHandler = new NumericHandler(); //expected var actualValue = numericHandler.GetDollarsText(testValue); Assert.AreEqual(expectedValue, actualValue); }