static void Main(string[] args) { var tradeStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("SingleResponsibilityPrinciple.trades.txt"); var tradeProcessor = new TradeProcessor(); tradeProcessor.ProcessTrades(tradeStream); Console.ReadKey(); }
static void Main(string[] args) { var tradeStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("SingleResponsibilityPrinciple.trades.txt"); var tradeProcessor = new TradeProcessor(); tradeProcessor.ProcessTrades(tradeStream); Console.ReadKey(); }
static void Main(string[] args) { //var tradeStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("SingleResponsibilityPrinciple.trades4.txt"); string url = " http://faculty.css.edu/tgibbons/trades4.txt"; var tradeProcessor = new TradeProcessor(); tradeProcessor.ProcessTrades(url); Console.ReadKey(); }
static void Main(string[] args) { var tradeStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("SingleResponsibilityPrinciple.trades.txt"); var logger = new ConsoleLogger(); var tradeValidator = new SimpleTradeValidator(logger); var tradeDataProvider = new StreamTradeDataProvider(tradeStream); var URlTradeDataProvider = new URLTradeDataProvider("http://faculty.css.edu/tgibbons/trades4.txt"); var tradeMapper = new SimpleTradeMapper(); var tradeParser = new SimpleTradeParser(tradeValidator, tradeMapper); var tradeStorage = new AdoNetTradeStorage(logger); var tradeProcessor = new TradeProcessor(tradeDataProvider, tradeParser, tradeStorage); tradeProcessor.ProcessTrades(); var urltradeProcessor = new TradeProcessor(UrltradeDataProvider, tradeParser, tradeStorage); tradeProcessor.ProcessTrades(); Console.ReadKey(); }
static void Main(string[] args) { var stream = new FileStream(@"D:\zMisc\SingleResponsibilityPrinciple\test.txt", FileMode.Open); var tradeDataProvider = new StreamTradeDataProvider(stream); var logger = new ConsoleLogger(); var tradeValidator = new SimpleTradeValidator(logger); var tradeMapper = new SimpleTradeMapper(); var tradeParser = new SimpleTradeParser(tradeValidator, tradeMapper); var tradeStorage = new DummyTradeStorage(); var tradeProcessor = new TradeProcessor(tradeDataProvider, tradeParser, tradeStorage); tradeProcessor.ProcessTrades(); }
static void Main(string[] args) { var tradeStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("SingleResponsibilityPrinciple.trades.txt"); var logger = new ConsoleLogger(); var tradeValidator = new SimpleTradeValidator(logger); var tradeDataProvider = new StreamTradeDataProvider(tradeStream); var tradeMapper = new SimpleTradeMapper(); var tradeParser = new SimpleTradeParser(tradeValidator, tradeMapper); var tradeStorage = new AdoNetTradeStorage(logger); var tradeProcessor = new TradeProcessor(tradeDataProvider, tradeParser, tradeStorage); tradeProcessor.ProcessTrades(); Console.ReadKey(); }
static void Main(string[] args) { var tradeStream = "http://faculty.css.edu/tgibbons/trades4.txt"; var logger = new ConsoleLogger(); var tradeValidator = new SimpleTradeValidator(logger); var tradeDataProvider = new URLTradeDataProvider(tradeStream); var tradeMapper = new SimpleTradeMapper(); var tradeParser = new SimpleTradeParser(tradeValidator, tradeMapper); var tradeStorage = new AdoNetTradeStorage(logger); var tradeProcessor = new TradeProcessor(tradeDataProvider, tradeParser, tradeStorage); tradeProcessor.ProcessTrades(); Console.ReadKey(); }
static void Main(string[] args) { var tradeStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("SingleResponsibilityPrinciple.trades.txt"); var tradeDataProvider = new StreamTradeDataProvider(tradeStream); var logger = new ConsoleLogger(); var tradeValidator = new SimpleTradeValidator(logger); var tradeMapper = new SimpleTradeMapper(logger); var tradeParser = new SimpleTradeParser(tradeValidator, tradeMapper); var tradeStore = new AdoNetTradeStore(logger); var tradeProcessor = new TradeProcessor(tradeDataProvider, tradeParser, tradeStore); tradeProcessor.ProcessTrades(); Console.ReadKey(); }
static void Main(string[] args) { // Updated URLTradeDataProvider object instead of a StreamTradeDataProvider and pass the new data provider to the TradeProcessor var tradeStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("SingleResponsibilityPrinciple.trades.txt"); string urlData = "http://faculty.css.edu/tgibbons/trades4.txt"; var logger = new ConsoleLogger(); var tradeValidator = new SimpleTradeValidator(logger); var tradeURLProvider = new URLTradeDataProvider(urlData); var tradeMapper = new SimpleTradeMapper(); var tradeParser = new SimpleTradeParser(tradeValidator, tradeMapper); var tradeStorage = new AdoNetTradeStorage(logger); var tradeProcessor = new TradeProcessor(tradeURLProvider, tradeParser, tradeStorage); tradeProcessor.ProcessTrades(); Console.ReadKey(); }