Ejemplo n.º 1
0
        public void GetBoards()
        {
            _model.CreateBoard("c");
            _model.CreateBoard("a");
            _model.CreateBoard("B");

            var query  = new GetBoardsQuery();
            var boards = query.Execute(_model);

            Assert.AreEqual(3, boards.Count);
            Assert.AreEqual("a", boards[0].Name);
            Assert.AreEqual("B", boards[1].Name);
            Assert.AreEqual("c", boards[2].Name);
        }
Ejemplo n.º 2
0
        public void CreateBoard()
        {
            var id = _model.CreateBoard("a board");

            Assert.AreEqual(8, id.Length);
        }