private IEnumerable <Sanction> Check(AutoSanctionCycleConfig[] cc, int previousData1, int currentData1) { var currentAccumulated = new PlayerDayResult[] { new PlayerDayResult { IdPlayer = 10, IdTeam = 1, Data1 = currentData1 }, }; var previousAccumulated = new PlayerDayResult[] { new PlayerDayResult { IdPlayer = 10, IdTeam = 1, Data1 = previousData1 }, }; var current = currentAccumulated.ToDictionary(pdr => pdr.IdPlayer); var previous = previousAccumulated.ToDictionary(pdr => pdr.IdPlayer); var match = new Match(); var result = AutoSanctionDispatcher.GetCardCyclesSanctions(current, previous, cc, match); return(result); }
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); }