protected ActionResolver GetActionResolver(DateTime returningDate) { var todayWrapper = new StubTodayWrapper(returningDate); var dateTranslator = new DateTranslator(todayWrapper); var numberTranslator = new NumberTranslator(); return new ActionResolver(dateTranslator, numberTranslator); }
protected ActionResolver GetActionResolver() { var todayWrapper = new TodayWrapper(); var dateTranslator = new DateTranslator(todayWrapper); var numberTranslator = new NumberTranslator(); return new ActionResolver(dateTranslator, numberTranslator); }
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(); }