public void ExecuteShould_ReturnNotEnoughParametersWhenNoParametersProvided()
        {
            var providerMock = new Mock <ISqlServerDataProvider>();
            var writerMock   = new Mock <IWriter>();
            var factoryMock  = new Mock <IModelsFactory>();

            var command = new AddTournamentCommand(providerMock.Object, writerMock.Object, factoryMock.Object);

            string result = command.Execute(new List <string>());

            Assert.That(result.Contains("Not enough parameters!"));
        }
        public void ExecuteShould_ClearTheScreenOneTIme()
        {
            var providerMock = new Mock <ISqlServerDataProvider>();
            var writerMock   = new Mock <IWriter>();
            var factoryMock  = new Mock <IModelsFactory>();

            var command = new AddTournamentCommand(providerMock.Object, writerMock.Object, factoryMock.Object);

            command.Execute(new List <string>());

            writerMock.Verify(x => x.Clear(), Times.Once);
        }