public void QuestionFactory() { IQuestionProvider qf = new QuestionFactory(); var next = qf.GetNextQuestion(); var byId = qf.GetQuestionById(next.Id); Assert.AreEqual(next.Question, byId.Question); }