Exemple #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);
        }
Exemple #2
0
        public void CreateIntegrationTest()
        {
            var card = _project.GetCard(4);

            Assert.IsInstanceOfType(card, typeof(MingleCard));
            Assert.AreEqual("Sprint 2", card.Name);
            var newCard = _project.CreateCard("story", "make a new widget");

            Assert.AreEqual("Story", newCard.Type);
            var view = _project.GetView("Sprint List");

            Assert.IsInstanceOfType(view, typeof(MingleCardCollection));
            Assert.AreEqual(view.Count, 7);
        }