示例#1
0
        public void SetUp()
        {
            // Setup IMtgStore Mocks
            mtgStoreMock = new Mock <IMtgStore>();

            // Setup ICardPriceStore Mocks
            priceStoreMock = new Mock <ICardPriceStore>();

            // Setup ICommandParser Mocks
            commandParserMock = new Mock <ICommandParser>();

            // Setup IHttpClient Mocks
            httpClientMock = new Mock <IHttpClient>();

            // Setup IUrlShortener Mocks
            urlShortenerMock = new Mock <IUrlShortener>();

            // Setup IMessenger Mocks
            messengerMock = new Mock <IMessenger>();

            plugin = new CoinFlipPlugin(
                mtgStoreMock.Object,
                priceStoreMock.Object,
                commandParserMock.Object,
                httpClientMock.Object,
                urlShortenerMock.Object,
                new BotConfig());

            plugin.LoggingService = loggingServiceMock.Object;

            plugin.OnLoad();
        }
示例#2
0
        public void SetUp()
        {
            unitTestContext = new UnitTestContext();

            plugin = new CoinFlipPlugin(
                unitTestContext.BotServicesMock.Object,
                new BotConfig());

            plugin.LoggingService = unitTestContext.LoggingServiceMock.Object;

            plugin.OnLoad();
        }