public void Handles_ReturnsFalse_NoFile()
        {
            var demoTradeFileCommand = new DemoTradeFileNetworkingCommand(this._appFactory);

            var result = demoTradeFileCommand.Handles("run demo trade networking file ");

            Assert.IsFalse(result);
        }
        public void Handles_ReturnsFalse_NotCorrectFileType()
        {
            var demoTradeFileCommand = new DemoTradeFileNetworkingCommand(this._appFactory);

            var result = demoTradeFileCommand.Handles("run demo trade file networking crazy.jpeg");

            Assert.IsFalse(result);
        }
        public void Handles_ReturnsFalse_ForNullCommand()
        {
            var demoTradeFileCommand = new DemoTradeFileNetworkingCommand(this._appFactory);

            var result = demoTradeFileCommand.Handles(null);

            Assert.IsFalse(result);
        }
        public void Handles_ReturnsTrue_CorrectCommandCsvFile()
        {
            var demoTradeFileCommand = new DemoTradeFileNetworkingCommand(this._appFactory);

            var directory = Path.Combine(Directory.GetCurrentDirectory(), DemoTradeFileCommand.FileDirectory);
            var file      = Path.Combine(directory, "anyNetworkFile.csv");

            File.Create(file);

            var result = demoTradeFileCommand.Handles("run demo trade networking file anyNetworkFile.csv");

            Assert.IsTrue(result);
        }