Exemplo n.º 1
0
 public InterGalacticCalculator(string calculatorInput, IInterGalacticMapper interGalacticMapper, IInputRetriever documentRetreiver, IInputParser documentParser)
 {
     _calculatorInput     = calculatorInput;
     _interGalacticMapper = interGalacticMapper;
     _documentRetreiver   = documentRetreiver;
     _documentParser      = documentParser;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 public TweetFeedGenerator()
 {
   userRepository = new UserRepository();
   tweetReposity = new TweetRepository();
   inputRetriever = new FileDocumentStorage();
   validator = new EncodingValidator();
   logger = new ConsoleLogger();
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
 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);
 }
Exemplo n.º 7
0
 /// <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);
 }