Exemple #1
0
        private Assessment createAssessment(Deck deck)
        {
            Traitify   traitify   = new Traitify(_host, _publicKey, _secretKey, "v1");
            Assessment assessment = traitify.CreateAssesment(deck.id);

            Assert.AreNotEqual(assessment, null);
            return(assessment);
        }
Exemple #2
0
        public void TestCreateAssessment()
        {
            Traitify trait = new Traitify(_host, _publicKey, _secretKey, "v1");
            Deck     deck  = getDeck();

            var response = trait.CreateAssesment(deck.id);

            Assert.AreNotEqual(response, null);
        }
Exemple #3
0
        private void btnGo_Click(object sender, EventArgs e)
        {
            Assessment   assessment = _traitify.CreateAssesment(comboBox1.SelectedValue.ToString());
            List <Slide> slides     = _traitify.GetSlides(assessment.id);

            frmAssessment frm = new frmAssessment();

            frm.assessment = assessment;
            frm.slides     = slides;
            frm.Show();
        }
Exemple #4
0
        static void Main(string[] args)
        {
            Console.WriteLine("Use this console app to test Traitify APIs");
            Console.WriteLine("Type hostname and hit enter:");
            string hostname = Console.ReadLine();

            Console.WriteLine("Type Public Key and hit enter:");
            string publicKey = Console.ReadLine();

            Console.WriteLine("Type Secret Key and hit enter:");
            string secretKey = Console.ReadLine();

            Traitify traitify = new Traitify(hostname, publicKey, secretKey, "v1");

            Console.WriteLine("Type DeckId and hit enter:");
            string deckId = Console.ReadLine();

            Assessment assess = traitify.CreateAssesment(deckId);

            Console.WriteLine("The AssesmentId is " + assess.id);

            Console.WriteLine("Press Any key to quit:");
            Console.ReadLine();
        }