コード例 #1
0
        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);
        }
コード例 #2
0
        public void NumericHandlerTest(double testValue, string expectedValue)
        {
            var numericHandler = new NumericHandler();


            //expected
            var actualValue = numericHandler.GetDollarsText(testValue);

            Assert.AreEqual(expectedValue, actualValue);
        }