Beispiel #1
0
        public async Task When_GettingUserModuleMetadataAsTutor_Expect_CorrectMetadata(int moduleId)
        {
            var metadata = await _modulesService.GetUserModuleMetadata(moduleId);

            Assert.True(metadata.CanResignFromTutoring);
            Assert.False(metadata.CanApplyForTutoring);
        }
        public async Task <IActionResult> GetUserMetadata(int moduleId)
        {
            var metadata = await _modulesService.GetUserModuleMetadata(moduleId);

            return(Ok(metadata));
        }