public ButtHitSeatCommandHandlerTests() { _handler = new ButtHitSeatCommandHandler(_boutRunner); var bout = _boutData.Load(Guid.Empty); _boutRunner.StartBout(bout); _state = _boutRunner.GetBoutState(Guid.Empty); _builder = new BoutStateBuilder(_state); _builder.SetPhase(BoutPhase.Jam); }
public ReleaseSkaterCommandHandlerTests() { _handler = new ReleaseSkaterCommandHandler(_boutRunner); var bout = _boutData.Load(Guid.Empty); _boutRunner.StartBout(bout); _state = _boutRunner.GetBoutState(Guid.Empty); _builder = new BoutStateBuilder(_state); _toUpdate = _builder.AddSkaterToBox(team: "left", number: 8); _command = new ReleaseSkaterCommand(Guid.Empty, "o", _toUpdate.Id); }
public UpdatePenaltyCommandHandlerTests() { var bout = _boutData.Load(Guid.Empty); _boutRunner.StartBout(bout); _state = _boutRunner.GetBoutState(Guid.Empty); _builder = new BoutStateBuilder(_state); _penalty1 = _builder.AddPenalty(); _handler = new UpdatePenaltyCommandHandler(_boutRunner); _penalty2.Id = _penalty1.Id; _penalty2.Number = 8; _command = new UpdatePenaltyCommand(Guid.Empty, "originator", _penalty2); }
public UpdateChairCommandHandlerTests() { _handler = new UpdateChairCommandHandler(_boutRunner, _boutData); var bout = _boutData.Load(Guid.Empty); _boutRunner.StartBout(bout); _state = _boutRunner.GetBoutState(Guid.Empty); _builder = new BoutStateBuilder(_state); var inBox = _builder.AddSkaterToBox(number: -1); _command = new UpdateChairCommand(Guid.Empty, "originator", new Chair { Id = inBox.Id, Team = "left", IsJammer = false, Number = 8 }); }