Remove LocationParsingConfiguration and LocationPatternMatcher classes, along with related tests and UI components. Update EventOccurrenceParserService to include location validation logic, enhancing warning reporting for long locations and potential date/time patterns. Adjust appsettings and UI to reflect the removal of location parsing settings.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Core.Entities;
|
||||
using Core.Models;
|
||||
using Tests.Builders;
|
||||
|
||||
namespace Tests.Parsers;
|
||||
@@ -27,17 +26,6 @@ public static class EventOccurrenceParserTestHelpers
|
||||
return EventDefinitionBuilder.Individual(name).Build();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a LocationParsingConfiguration for testing.
|
||||
/// </summary>
|
||||
public static LocationParsingConfiguration CreateLocationConfig(params string[] patterns)
|
||||
{
|
||||
return new LocationParsingConfiguration
|
||||
{
|
||||
LocationPatterns = patterns.ToList()
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Cleans up a temporary file.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user