Add Blazor WebApp and rework data handling to utilize Entity Framework
This commit is contained in:
@@ -9,7 +9,7 @@ public class EventOccurrenceParser_Tests
|
||||
[Test]
|
||||
public void ParseTest()
|
||||
{
|
||||
var events = TestEntityHandler.GetCompetitiveEvents();
|
||||
var events = TestEntityHandler.GetEvents();
|
||||
var parser = new EventOccurrenceParser(TestEntityHandler.GetEventOccurrenceFileInfo(), events);
|
||||
var dictionary = parser.Parse();
|
||||
Console.WriteLine($"Occurrence, Month, Date, Time, Location");
|
||||
@@ -19,7 +19,7 @@ public class EventOccurrenceParser_Tests
|
||||
|
||||
if (!dictionary.ContainsKey(@event))
|
||||
{
|
||||
Console.WriteLine("!!! event not found " + @event.Name);
|
||||
Console.WriteLine("!!! eventDefinition not found " + @event.Name);
|
||||
continue;
|
||||
}
|
||||
var eventOccurrences = dictionary[@event];
|
||||
@@ -30,13 +30,13 @@ public class EventOccurrenceParser_Tests
|
||||
}
|
||||
|
||||
Console.WriteLine("General Schedule");
|
||||
foreach (var eo in dictionary[CompetitiveEvent.GeneralSchedule].OrderBy(occurrence => occurrence.StartTime))
|
||||
foreach (var eo in dictionary[EventDefinition.GeneralSchedule].OrderBy(occurrence => occurrence.StartTime))
|
||||
{
|
||||
Console.WriteLine($"\t{eo.StartTime.DayOfWeek} {eo.Time}, {eo.Name}, {eo.Location}");
|
||||
}
|
||||
|
||||
if (dictionary.ContainsKey(CompetitiveEvent.VotingDelegates))
|
||||
foreach (var eo in dictionary[CompetitiveEvent.VotingDelegates])
|
||||
if (dictionary.ContainsKey(EventDefinition.VotingDelegates))
|
||||
foreach (var eo in dictionary[EventDefinition.VotingDelegates])
|
||||
{
|
||||
Console.WriteLine($"{eo.Name} {eo.StartTime}, {eo.Location}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user