public void ThrowExeptionWhenCommandParametersAreLessThanItShouldCorrectly()
        {
            string boardName = "Board";
            IBoard board     = new Board(boardName);

            string teamName = "TeamName";
            ITeam  team     = new Team(teamName);

            database.Boards.Add(board);
            database.Teams.Add(team);

            List <string> parameters = new List <string>
            {
                boardName
            };

            AddBoardToTeamCommand command = new AddBoardToTeamCommand(parameters);

            command.Execute();
        }
        public void ThrowExeptionWhenTeamNameIsNull()
        {
            string boardName = "Board";
            IBoard board     = new Board(boardName);

            string teamName = null;
            ITeam  team     = new Team(teamName);

            database.Boards.Add(board);
            database.Teams.Add(team);

            List <string> parameters = new List <string>
            {
                boardName,
                teamName
            };

            AddBoardToTeamCommand command = new AddBoardToTeamCommand(parameters);

            command.Execute();
        }
        public void AddsBoardToTeamCommand_Should()
        {
            string boardName = "Board";
            IBoard board     = new Board(boardName);

            string teamName = "TeamName";
            ITeam  team     = new Team(teamName);

            database.Boards.Add(board);
            database.Teams.Add(team);

            List <string> parameters = new List <string>
            {
                boardName,
                teamName
            };

            AddBoardToTeamCommand command = new AddBoardToTeamCommand(parameters);

            command.Execute();
            Assert.IsTrue(team.Boards.Any(x => x.Name == boardName));
        }