Create() 공개 정적인 메소드

public static Create ( long id, long questionId ) : Answer
id long
questionId long
리턴 Answer
예제 #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),
            };
        }