Test Driving the Quiz Session
Let’s try out our session manager GenServer.
We'll cover the following...
We'll cover the following...
Running our second GenServer
We will connect to our server with the GenServer
module and the various functions we’ve built in the QuizManager
module. We’ll open up iex
with iex -S mix
.
Setting up aliases
We’ll want to set up the aliases and start up the server:
Executable
alias Mastery.Boundary.QuizSession
alias Mastery.Boundary.QuizSession
Output
iex(1)> alias Mastery.Boundary.QuizSession
Mastery.Boundary.QuizSession
iex(2)> alias Mastery.Examples.Math
Mastery.Examples.Math
We alias the two modules we need: