public static WeatherEvent Create(DateTime date, WeatherType type, Boolean hooray, List<string[]> reactions) { var wE = new WeatherEvent(date, type, hooray); foreach (var reaction in reactions) { wE.Reactions.Add(new Reaction { Name = reaction[0], Quote = reaction[1] }); Console.WriteLine($"Reactions Count {wE.Reactions.Count}"); } return wE; }
public static WeatherEvent Create(DateTime date, WeatherType type, List <string[]> reactions) { var wE = new WeatherEvent(date, type); foreach (var reaction in reactions) { wE.Reactions.Add(new Reaction { Name = reaction[0], Quote = reaction[1] }); Console.WriteLine($"Reactions Count {wE.Reactions.Count}"); } return(wE); }