Skip to content
Snippets Groups Projects
Commit 6b9476b8 authored by AFONY10's avatar AFONY10
Browse files

sdf

parent 350f2cf2
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
...@@ -22,6 +22,7 @@ namespace ATB_ChainPattern.ConcreteHandlers ...@@ -22,6 +22,7 @@ namespace ATB_ChainPattern.ConcreteHandlers
else if (successor != null) else if (successor != null)
{ {
successor.AnalyzeProduct(productName); successor.AnalyzeProduct(productName);
} }
else else
{ {
......
...@@ -9,6 +9,14 @@ namespace ATB_ChainPattern ...@@ -9,6 +9,14 @@ namespace ATB_ChainPattern
{ {
static void Main(string[] args) static void Main(string[] args)
{ {
string inputProduct, inputType = "";
System.Console.WriteLine("Enter a product to analyze (Tesla Stock, Bitcoin): ");
inputProduct = Console.ReadLine();
System.Console.WriteLine("Enter the type of product (Stock, Crypto): ");
inputType = Console.ReadLine();
// Create handlers // Create handlers
var stockHandler = new StockHandlerBase(); var stockHandler = new StockHandlerBase();
var cryptoHandler = new CryptoHandlerBase(); var cryptoHandler = new CryptoHandlerBase();
......
...@@ -14,7 +14,7 @@ using System.Reflection; ...@@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("ATB-ChainPattern")] [assembly: System.Reflection.AssemblyCompanyAttribute("ATB-ChainPattern")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+14a672457e2c0d169ce54ef69400d0ac17621767")] [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+350f2cf2f97776fe7f1fef61b0d15bf6f1e39208")]
[assembly: System.Reflection.AssemblyProductAttribute("ATB-ChainPattern")] [assembly: System.Reflection.AssemblyProductAttribute("ATB-ChainPattern")]
[assembly: System.Reflection.AssemblyTitleAttribute("ATB-ChainPattern")] [assembly: System.Reflection.AssemblyTitleAttribute("ATB-ChainPattern")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
......
94ce83a818af06c017d1a7dfafb43e5d15992c42586ed369db57c1e99bca18a7 52ab4db5eebe607b6023dc211564f53497f7be0382b98517da524d3bae287689
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment