Esempio n. 1
0
        public void FormattedOutputDataProvider_Only_ResultInput_Test()
        {
            IFormattedOutputDataProvider outputProvider = new FormattedOutputDataProvider();
            string inputValue = "r:1:2:3";
            bool   success    = BlAccessor.ProcessResultInput(inputValue);

            Assert.IsTrue(success);
            Assert.IsTrue(outputProvider.OutputData != NotEnoughExpectedOutputData);
        }
Esempio n. 2
0
        public void FormattedOutputDataProvider_Without_Result_Input_Test()
        {
            IFormattedOutputDataProvider outputProvider = new FormattedOutputDataProvider();
            string inputValue = "w:2:3";
            bool   success    = BlAccessor.ProcessBetInput(inputValue);

            Assert.IsTrue(success);
            Assert.IsTrue(outputProvider.OutputData == NotEnoughExpectedOutputData);

            inputValue = "p:1:3";
            success    = BlAccessor.ProcessBetInput(inputValue);
            Assert.IsTrue(success);
            Assert.IsTrue(outputProvider.OutputData == NotEnoughExpectedOutputData);

            inputValue = "e:1,2:3";
            success    = BlAccessor.ProcessBetInput(inputValue);
            Assert.IsTrue(success);
            Assert.IsTrue(outputProvider.OutputData == NotEnoughExpectedOutputData);

            inputValue = "q:1,2:3";
            success    = BlAccessor.ProcessBetInput(inputValue);
            Assert.IsTrue(success);
            Assert.IsTrue(outputProvider.OutputData == NotEnoughExpectedOutputData);
        }
Esempio n. 3
0
        /// <summary>
        /// Prepare the dividends data for display
        /// </summary>
        private static void ProcessDividendOutput()
        {
            IFormattedOutputDataProvider outputProvider = new FormattedOutputDataProvider();

            DisplayOutput(outputProvider.OutputData);
        }
Esempio n. 4
0
        public void FormattedOutputDataProvider_Without_Any_Input_Test()
        {
            IFormattedOutputDataProvider outputProvider = new FormattedOutputDataProvider();

            Assert.IsTrue(outputProvider.OutputData == NotEnoughExpectedOutputData);
        }