Add Blazor WebApp and rework data handling to utilize Entity Framework

This commit is contained in:
2025-09-11 11:49:48 -04:00
parent 5220e61c79
commit 3daa3b81b3
111 changed files with 6039 additions and 946 deletions
+5 -5
View File
@@ -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}");
}