public static Create ( long id, long questionId ) : |
||
id | long | |
questionId | long | |
Результат |
public override void OnBeforeEachTest() { base.OnBeforeEachTest(); redisQuestions = base.Redis.GetTypedClient <Question>(); q1Answers = new List <Answer> { Answer.Create(1, question1.Id), Answer.Create(2, question1.Id), Answer.Create(3, question1.Id), Answer.Create(4, question1.Id), Answer.Create(5, question1.Id), }; }
public override void OnBeforeEachTest() { base.OnBeforeEachTest(); redisQuestions = base.Redis.As <Question>(); redisQuestions.Db = 10; redisQuestions.FlushDb(); q1Answers = new List <Answer> { Answer.Create(1, question1.Id), Answer.Create(2, question1.Id), Answer.Create(3, question1.Id), Answer.Create(4, question1.Id), Answer.Create(5, question1.Id), }; }