Ejemplo n.º 1
0
 public ChatBotControllerTest()
 {
     _question = new QuestionRepository(new ChatbotEntities());
     _option   = new OptionsRepository(new ChatbotEntities());
     _monitor  = new MonitorRepository(new ChatbotEntities());
     _customer = new CustomerRepository(new ChatbotEntities());
 }
Ejemplo n.º 2
0
        public void Init(string customerDataFilePath, int rangeInKms, GPSLocation officeLocation)
        {
            IFileReader   fileReader   = new FileReader(customerDataFilePath);
            IDeserializer deserializer = new JsonDeserializer();

            _dataFetch = new FileDataFetch(fileReader, deserializer);
            DistanceFilterStrategy strategy = new DistanceFilterStrategy(rangeInKms, officeLocation);

            _filter = new CustomerFilter(strategy);
        }