public void GetObjectiveArray_returns_results_in_specified_json_format()
        {
            // Given
            var sampleObjectiveArrayResult = new[]
            {
                new Objective(1, new List <int> {
                    6, 7, 8
                }, 4),
                new Objective(2, new List <int> {
                    17, 18, 19
                }, 0),
            };

            A.CallTo(
                () => tutorialContentDataService.GetNonArchivedObjectivesBySectionAndCustomisationId(
                    A <int> ._,
                    A <int> ._
                    )
                )
            .Returns(sampleObjectiveArrayResult);

            // When
            var result = trackerActionService.GetObjectiveArray(1, 1);

            // Then
            result.Should().BeEquivalentTo(new TrackerObjectiveArray(sampleObjectiveArrayResult));
        }
        public void ProcessQuery_with_GetObjectiveArray_action_passes_query_params()
        {
            // Given
            var query = new TrackerEndpointQueryParams
            {
                Action = "GetObjectiveArray", CustomisationId = 1, SectionId = 2
            };

            // When
            trackerService.ProcessQuery(query, emptySessionVariablesDictionary);

            // Then
            A.CallTo(() => actionService.GetObjectiveArray(1, 2)).MustHaveHappenedOnceExactly();
        }