protected ActionResolver GetActionResolver()
        {
            var todayWrapper = new TodayWrapper();
            var dateTranslator = new DateTranslator(todayWrapper);
            var numberTranslator = new NumberTranslator();

            return new ActionResolver(dateTranslator, numberTranslator);
        }
Пример #2
0
        public static string GetSearchOptions(string searchText)
        {
            var wrapper = new TodayWrapper();
            var dateTranslator = new DateTranslator(wrapper);
            var numberTranslator = new NumberTranslator();

            var resolver = new ActionResolver(dateTranslator, numberTranslator);
            return resolver.Resolve(searchText).ToString();
        }