Exemplo n.º 1
0
        public static void CommonSetup(TestContext testContext)
        {
            FeedEpisode[] feed = JsonConvert.DeserializeObject <FeedEpisode[]>(File.ReadAllText("feed.json"));
            Random        r    = new Random();

            TestFeed = feed.OrderBy(i => r.Next()).ToArray();

            FeedTransformer = new InterviewTask();
        }
Exemplo n.º 2
0
        public IActionResult InterviewTaskCreate(AddInterviewTaskViewModel addInterviewTaskViewModel)
        {
            DateTime timeStamp = DateTime.Now;

            for (int i = 0; i < addInterviewTaskViewModel.InterviewTaskDescription.Count; i++)
            {
                var limitTask = new InterviewTask();

                limitTask.Date     = timeStamp;
                limitTask.Position = i + 1;
                limitTask.InterviewTaskDescription = addInterviewTaskViewModel.InterviewTaskDescription[i];

                _context.InterviewTasks.Add(limitTask);
                _context.SaveChanges();
            }

            return(RedirectToAction("InterviewTaskList"));
        }
Exemplo n.º 3
0
 public static void CommonSetup(TestContext testContext)
 {
     WordCounter = new InterviewTask();
 }
Exemplo n.º 4
0
 public static void CommonSetup(TestContext testContext)
 {
     Search = new InterviewTask();
 }