public InterGalacticCalculator(string calculatorInput, IInterGalacticMapper interGalacticMapper, IInputRetriever documentRetreiver, IInputParser documentParser) { _calculatorInput = calculatorInput; _interGalacticMapper = interGalacticMapper; _documentRetreiver = documentRetreiver; _documentParser = documentParser; }
public TweetFeedGenerator(IUserRepository userRepository, ITweetRepository tweetReposity, IInputRetriever inputRetriever, IValidator validator, ILogger logger) { this.userRepository = userRepository; this.tweetReposity = tweetReposity; this.inputRetriever = inputRetriever; this.validator = validator; this.logger = logger; }
public TweetFeedGenerator() { userRepository = new UserRepository(); tweetReposity = new TweetRepository(); inputRetriever = new FileDocumentStorage(); validator = new EncodingValidator(); logger = new ConsoleLogger(); }
public static void RegisterInputRetriever(Func <string, bool> evaluator, IInputRetriever inputRetriever) { InputRetrievers.Add(evaluator, inputRetriever); }
/// <summary> /// Registers IInputRetrievers. /// </summary> /// <param name="evaluator"></param> /// <param name="inputRetriever"></param> public static void RegisterInputRetriever(Func<string, bool> evaluator, IInputRetriever inputRetriever) { InputRetrievers.Add(evaluator, inputRetriever); }