Exemplo n.º 1
0
 public TestAnswers(ScheduledTest scheduledTest, UserTest userTest, string userName, IDateTimeProvider dateTimeProvider)
 {
     UserTest = userTest;
     UserName = userName;
     this.dateTimeProvider = dateTimeProvider;
     ScheduledTest         = scheduledTest;
 }
Exemplo n.º 2
0
            public ScheduledTest Build()
            {
                if (testTemplate != null)
                {
                    testTemplateId = testTemplate.Id;
                }

                var scheduledTest =
                    new ScheduledTest(testTemplateId, publishedAt, startDate, endDate, durationInMinutes, userIds);

                scheduledTest.Id           = id;
                scheduledTest.TestTemplate = testTemplate;

                return(scheduledTest);
            }