コード例 #1
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);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: floradu88/traitify.net
        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();
        }
コード例 #3
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;
 }