public void GenerateStudyGroupsTest()
        {
            //Arrange
            _mockStrategy.Setup(x => x.GenerateStudyGroupsAsync(_testResult)).ReturnsAsync(_studyGroups);

            //Act
            var result = _studyGroupService.GenerateStudyGroupsAsync(_testResult).GetAwaiter().GetResult();

            //Assert
            Assert.IsNotNull(result);
            Assert.AreEqual(result, _studyGroups);
        }
        public IHttpActionResult GetStudyGroups([FromBody] string testResult)
        {
            // Authorize request

            try
            {
                var testGrid = JsonConvert.DeserializeObject <string[, ]>(testResult);

                var studyGroups = _studyGroupService.GenerateStudyGroupsAsync(testGrid).GetAwaiter().GetResult();
                return(Ok(studyGroups.Select(x => x.GroupMembers.ToArray()).ToArray()));
            }
            catch (System.Exception ex)
            {
                // Handle exception
                return(StatusCode(System.Net.HttpStatusCode.InternalServerError));
            }
        }