public void Execute(string sessionID, string messageID) { if (InvalidIDString(messageID)) { throw new InvalidMessageIDException(); } if (InvalidIDString(sessionID)) { throw new InvalidSessionIDException(); } if (_responseGateway.HasID(messageID)) { _responseGateway.PopID(messageID); _getStartingCard.Execute(sessionID); } }
public void Execute(string sessionID, string messageID) { if (InvalidIDString(messageID)) { throw new InvalidMessageIDException(); } if (InvalidIDString(sessionID)) { throw new InvalidSessionIDException(); } if (!_awaitingResponseGateway.HasID(messageID)) { return; } _awaitingResponseGateway.PopID(messageID); _getGameInProgressUseCase.Execute(sessionID); }