public void GetCardCyclesSanctionsNull1()
        {
            var cc     = AutoSanctionDispatcher_CycleTests.GetCycleConfigs(5, 4, 3);
            var result = AutoSanctionDispatcher.GetCardCyclesSanctions(null, null, cc, new Match());

            Assert.IsNull(result);
        }
        public void GetCardCyclesSanctions3()
        {
            var cc = AutoSanctionDispatcher_CycleTests.GetCycleConfigs(5, 4, 3);

            var result = Check(cc, 6, 8);

            Assert.IsNotNull(result);
            Assert.AreEqual(0, result.Count());
        }
        public void GetCardCyclesSanctions4()
        {
            var cc = AutoSanctionDispatcher_CycleTests.GetCycleConfigs(5, 4, 3);

            var result = Check(cc, 8, 9);

            Assert.IsNotNull(result);
            Assert.AreEqual(1, result.Count());

            var sanction = result.First();

            Assert.IsNotNull(sanction);
            Assert.AreEqual("Cycle 2", sanction.InitialContent);
        }
        public void GetCardCyclesSanctionsNull3()
        {
            var cc = AutoSanctionDispatcher_CycleTests.GetCycleConfigs(5, 4, 3);

            var currentAccumulated = new PlayerDayResult[]
            {
                new PlayerDayResult {
                    IdPlayer = 10, IdTeam = 1, Data1 = 1
                },
            };

            var current = currentAccumulated.ToDictionary(pdr => pdr.IdPlayer);

            var result = AutoSanctionDispatcher.GetCardCyclesSanctions(current, null, cc, new Match());

            Assert.IsNull(result);
        }