Skip to content

Commit

Permalink
lowercase route node function name (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
runeanielsen authored Oct 13, 2020
1 parent 4a732ee commit e363000
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/OpenFTTH.GDBIntegrator.RouteNetwork/Mapping/InfoMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,21 +109,21 @@ public class InfoMapper : IInfoMapper
if (string.IsNullOrEmpty(routeNodeFunctionStringRepresentation))
return null;

switch (routeNodeFunctionStringRepresentation)
switch (routeNodeFunctionStringRepresentation.ToLower())
{
case "AccessibleConduitClosure":
case "accessibleconduitclosure":
return RouteNodeFunctionEnum.AccessibleConduitClosure;
case "CustomerPremisesPoint":
case "customerpremisespoint":
return RouteNodeFunctionEnum.CustomerPremisesPoint;
case "FlexPoint":
case "flexpoint":
return RouteNodeFunctionEnum.FlexPoint;
case "NonAccessibleConduitClosure":
case "nonaccessibleconduitclosure":
return RouteNodeFunctionEnum.NonAccessibleConduitClosure;
case "PrimaryNode":
case "primarynode":
return RouteNodeFunctionEnum.PrimaryNode;
case "SecondaryNode":
case "secondarynode":
return RouteNodeFunctionEnum.SecondaryNode;
case "SplicePoint":
case "splicepoint":
return RouteNodeFunctionEnum.SplicePoint;
default:
throw new ArgumentException($"Value '{routeNodeFunctionStringRepresentation}' is not valid'");
Expand Down

0 comments on commit e363000

Please sign in to comment.