From afa4d2649abdca1e976fc2ba1387f25994941394 Mon Sep 17 00:00:00 2001 From: ZacharyPatten Date: Thu, 1 Jun 2023 09:56:51 -0500 Subject: [PATCH] oligopoly fix --- Projects/Oligopoly/Program.cs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Projects/Oligopoly/Program.cs b/Projects/Oligopoly/Program.cs index ac09ffe0..945dfd50 100644 --- a/Projects/Oligopoly/Program.cs +++ b/Projects/Oligopoly/Program.cs @@ -26,8 +26,22 @@ public static void Main() // trimmed when compiling with the -p:PublishTrimmed=true option. // The default constructor is required for JSON deserialization. - _ = new Company(); - _ = new Event(); + _ = new Company() + { + Name = nameof(Company.Name), + Industry = nameof(Company.Industry), + SharePrice = 42.42m, + NumberOfShares = 42, + Description = nameof(Company.Description) + }; + + _ = new Event() + { + Title = nameof(Event.Title), + Description = nameof(Event.Description), + CompanyName = nameof(Event.CompanyName), + Effect = 42 + }; #endregion