Example #1
0
        public void SetupFixture()
        {
            unitTestContext = new UnitTestContext();

            autocompleter = new ScryFallAutocomplete(unitTestContext.HttpClientMock.Object, unitTestContext.LoggingServiceMock.Object);

            SetupData();
        }
Example #2
0
        public BotServices(
            IMtgStore store,
            ICardPriceStore priceStore,
            ICommandParser commandParser,
            IHttpClient httpClient,
            IUrlShortener urlShortener,
            IQueryStatisticsStore queryStatisticsStore,
            IAutocompleter autocompleter)
        {
            if (store == null)
            {
                throw new ArgumentNullException("store");
            }

            if (priceStore == null)
            {
                throw new ArgumentNullException("priceStore");
            }

            if (commandParser == null)
            {
                throw new ArgumentNullException("commandParser");
            }

            if (httpClient == null)
            {
                throw new ArgumentNullException("httpClient");
            }

            if (urlShortener == null)
            {
                throw new ArgumentNullException("urlShortener");
            }

            if (queryStatisticsStore == null)
            {
                throw new ArgumentNullException("queryStatisticsStore");
            }

            if (autocompleter == null)
            {
                throw new ArgumentNullException("autocompleter");
            }

            this.mStore                = store;
            this.mPriceStore           = priceStore;
            this.mCommandParser        = commandParser;
            this.mHttpClient           = httpClient;
            this.mUrlShortener         = urlShortener;
            this.mQueryStatisticsStore = queryStatisticsStore;
            this.mAutocompleter        = autocompleter;
        }
Example #3
0
 public Editor()
 {
     completer = new Autocompleter();
 }