Beispiel #1
0
        public static Story StoryAdd()
        {
            var story = StoryTestHelper.StoryNew();

            story = StoryRepository.StorySave(story);

            return(story);
        }
Beispiel #2
0
        public static Hour HourNew()
        {
            var story = StoryTestHelper.StoryAdd();
            var user  = UserTestHelper.UserAdd();

            var hour = HourRepository.HourNew();

            hour.StoryId = story.StoryId;
            hour.UserId  = user.UserId;
            hour.Notes   = DataHelper.RandomString(50);

            return(hour);
        }