Пример #1
0
        /// <summary>
        /// Returns a CardsCollection collection for cards for view of name
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public CardsCollection GetView(string name)
        {
            var cards = new CardsCollection(MingleProject, _model);

            MingleProject.GetView(name).ToList().ForEach(c => cards.Add(new Card(c, _model)));
            return(cards);
        }
Пример #2
0
 public static void MyClassInitialize(TestContext testContext)
 {
     _mingle  = new MingleServer(MingleHost, MINGLEUSER, MINGLEPASSWORD);
     _project = _mingle.GetProject("apitest");
 }
Пример #3
0
 /// <summary>
 /// Sends a murmur to Mingle
 /// </summary>
 /// <param name="murmur"></param>
 public void SendMurmur(string murmur)
 {
     MingleProject.SendMurmur(murmur);
 }
Пример #4
0
 /// <summary>
 ///
 ///
 /// Create a new card
 /// </summary>
 /// <param name="type"></param>
 /// <param name="name"></param>
 /// <returns></returns>
 public Card CreateCard(string type, string name)
 {
     return(new Card(MingleProject.CreateCard(type, name), _model));
 }
Пример #5
0
 /// <summary>
 /// Calls the execute_mql API and returns an XElement of results
 /// </summary>
 /// <param name="mql"></param>
 /// <returns></returns>
 public XElement ExecMql(string mql)
 {
     return(MingleProject.ExecMql(mql));
 }
Пример #6
0
 /// <summary>
 /// Returns the CardType name of a card identified by cardNumber
 /// </summary>
 /// <param name="cardNumber"></param>
 /// <returns></returns>
 public string GetCardType(string cardNumber)
 {
     return(MingleProject.GetCardType(cardNumber));
 }
Пример #7
0
 /// <summary>
 /// Returns a Hashtable of CardProperty
 /// </summary>
 /// <param name="transitionOnly"></param>
 /// <returns></returns>
 public Hashtable GetCardValuedProperties(bool transitionOnly)
 {
     return(MingleProject.GetCardValuedProperties(transitionOnly));
 }