private static void AddTeam1Point(SS.GTP.Domain.Sports.Handball.StateMachine stateMachine, int period, int minute, int second)
 {
     stateMachine.MatchClockStateMachine.Period = period;
     stateMachine.MatchClockStateMachine.Minute = minute;
     stateMachine.MatchClockStateMachine.Second = second;
     stateMachine.Team1Points++;
 }
        public void WhenThereIsAGoalByAtMinuteSecondsInThePeriod_Half(string team, int minute, int second, int period, Table table)
        {
            ScenarioContext.Current.Get <BasePricingResponse>(Constants.KeyPricingResponse);
            ScenarioContext.Current.Get <ConnectClient>(Constants.KeyConnectClient);

            var stateMachine = new SS.GTP.Domain.Sports.Handball.StateMachine
            {
                SportType           = Sport.Handball,
                HalvesOrQuarters    = Period.Halves,
                HalfOrQuarterLength = 30,
                OvertimeLength      = 0
            };

            AddTeam1Point(stateMachine, period, minute, second);

            var request = new PricingRequest();

            request.FixtureState.ActionLog    = stateMachine.ActionLog.ToList();
            request.FixtureState.Clock.Period = 1;

            var linkedCeResource = ScenarioContext.Current.Get <FixtureResource>(Constants.KeyLinkedCe);
            var connectClient    = ScenarioContext.Current.Get <ConnectClient>(Constants.KeyConnectClient);

            connectClient.PriceFixture(linkedCeResource, request);
        }