示例#1
0
        public static Criteria CreateCriteria(UserStory userStory, Queue <string> words)
        {
            var newCriteria = new Criteria
            {
                UserStory = userStory,
                Header    = CreateRecordLine(words, 2, 7),
                Content   = CreateRecordLine(words, 10, 17)
            };

            return(newCriteria);
        }
示例#2
0
 public static void CreateDbEntry(UserStory userStory, List <Criteria> criterias = null)
 {
     using (var db = new StoryDbContext())
     {
         db.Stories.Add(userStory);
         if (criterias != null)
         {
             db.Criterias.AddRange(criterias);
         }
         db.SaveChanges();
     }
 }
示例#3
0
        public static UserStory CreateUserStory(string uid, Queue <string> words)
        {
            var newStory = new UserStory
            {
                Id    = uid,
                Actor = CreateRecordLine(words, 1, 5),
                Goal  = CreateRecordLine(words, 8, 13),
                Value = CreateRecordLine(words, 10, 17)
            };

            return(newStory);
        }