public void Controller_Calendar_Instantiate_Default_Should_Pass()
        {
            // Arrange
            var controller = new CalendarController();

            // Act
            var result = controller.GetType();

            // Assert
            Assert.AreEqual(result, new CalendarController().GetType(), TestContext.TestName);
        }
Exemple #2
0
        public void CanGetDailyAggregations()
        {
            var results = new CalendarController().Get(
                new CalendarAttributes
            {
                AggregateFunctionId = AggregateFunction.Total,
                CourseId            = 1,
                ReferenceDate       = new DateTime(2014, 1, 1),
                SelectedMeasures    = "ActiveStudents,LinesOfCodeWritten,TimeSpent,NumberOfCompilations,NumberOfErrorsPerCompilation,NumberOfNoDebugExecutions,NumberOfDebugExecutions,NumberOfBreakpointsSet,NumberOfRuntimeExceptions,NumberOfPosts,NumberOfReplies,TimeToFirstReply",
                SubjectUsers        = null
            });

            Assert.IsNotNull(results);
            Assert.IsTrue(results.GetType() == typeof(DailyAggregations));
        }