public void TestGetDecks()
 {
     Traitify traitify = new Traitify(_host, _publicKey, _secretKey, "v1");
     List<Deck> decks = traitify.GetDecks();
     int mycount = decks.Count;
     Assert.AreNotEqual(mycount, 0);
 }
Example #2
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            try
            {
                _traitify = new TraitifyClient().traitify;

                List<Deck> decks = _traitify.GetDecks();
                comboBox1.DataSource = decks;
                comboBox1.DisplayMember = "Name";
                comboBox1.ValueMember = "id";
            }
            catch (Exception ex)
            {
                btnGo.Enabled = false;
                MessageBox.Show(ex.Message.ToString());
            }
        }
 private List<Deck> listDecks()
 {
     Traitify traitify = new Traitify(_host, _publicKey, _secretKey, "v1");
     return traitify.GetDecks();
 }