コード例 #1
0
 public InterGalacticCalculator(string calculatorInput, IInterGalacticMapper interGalacticMapper, IInputRetriever documentRetreiver, IInputParser documentParser)
 {
     _calculatorInput     = calculatorInput;
     _interGalacticMapper = interGalacticMapper;
     _documentRetreiver   = documentRetreiver;
     _documentParser      = documentParser;
 }
コード例 #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;
 }
コード例 #3
0
 public TweetFeedGenerator()
 {
   userRepository = new UserRepository();
   tweetReposity = new TweetRepository();
   inputRetriever = new FileDocumentStorage();
   validator = new EncodingValidator();
   logger = new ConsoleLogger();
 }
コード例 #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;
 }
コード例 #5
0
 public TweetFeedGenerator()
 {
     userRepository = new UserRepository();
     tweetReposity  = new TweetRepository();
     inputRetriever = new FileDocumentStorage();
     validator      = new EncodingValidator();
     logger         = new ConsoleLogger();
 }
コード例 #6
0
 public static void RegisterInputRetriever(Func <string, bool> evaluator, IInputRetriever inputRetriever)
 {
     InputRetrievers.Add(evaluator, inputRetriever);
 }
コード例 #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);
 }