public async Task TestUserStatus()
        {
            var adapter   = new ProProfsAdapter(this.proProfsProxy);
            var usermodel = new ProProfsUser();

            usermodel.Email = "*****@*****.**";
            usermodel.Group = new List <string>()
            {
                "Test"
            };
            var result = await adapter.QuizStatus("*****@*****.**");

            Assert.NotNull(result);
        }
        public async Task TestUserGroupRegistration()
        {
            var adapter   = new ProProfsAdapter(this.proProfsProxy);
            var usermodel = new ProProfsUser();

            usermodel.Email = "*****@*****.**";
            usermodel.Group = new List <string>()
            {
                "Test"
            };
            var result = await adapter.AddUserToGroup(usermodel);

            Assert.True(result);
        }
        public async Task TestUserQuizRegistration()
        {
            var adapter   = new ProProfsAdapter(this.proProfsProxy);
            var usermodel = new ProProfsUser();

            usermodel.Email = "*****@*****.**";
            var quizzes = new List <ProProfsUserQuiz>();

            quizzes.Add(new ProProfsUserQuiz()
            {
                QuizLink = "https://www.proprofs.com/quiz-school/story.php?title=agility-security-awareness-quiz"
            });
            usermodel.Quizzes = quizzes;

            var result = await adapter.AddUserToQuiz(usermodel);

            Assert.True(result);
        }
 public ProProfsController(ProProfsAdapter proProfsAdapter, UserRepository userRepository)
 {
     this.proProfsAdapter = proProfsAdapter;
     this.userRepository  = userRepository;
 }