public void Setup() { var gateway = new GameGatewayInMemory(); var validator = new CreateGameValidator(); var session = new SessionGatewaySpy(); var interactor = new CreateGameInteractor(validator, session, gateway); controller = new CreateGameController(interactor); }
public void Setup() { sut = MakeSut(); SessionGateway = new SessionGatewaySpy(); // Insert fake session var session = new Entities.Session() { GameId = 1, Id = "", // Assigned by gateway PlayerId = 1 }; SessionGateway.CreateSession(session); storedSession = session; }