Create() public static méthode

public static Create ( long id, long questionId ) : Answer
id long
questionId long
Résultat Answer
Exemple #1
0
        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),
            };
        }