Closed guilhermeluizsp closed 4 years ago
The property WorkBenchServiceHttp inside the MethodStubAPIConfiguration class maps the Name property to an WorkBenchServiceHttp enumeration.
WorkBenchServiceHttp
MethodStubAPIConfiguration
Name
https://github.com/Avanade/Liquid-Application-Framework/blob/be28f796798fe4f9648b96e5cf9b484dd63846fa/src/Liquid.Domain/API/StubAPIConfiguration.cs#L55-L80
This conversion can be simplified by leveraging the Enum.TryParse method.
The property
WorkBenchServiceHttp
inside theMethodStubAPIConfiguration
class maps theName
property to anWorkBenchServiceHttp
enumeration.https://github.com/Avanade/Liquid-Application-Framework/blob/be28f796798fe4f9648b96e5cf9b484dd63846fa/src/Liquid.Domain/API/StubAPIConfiguration.cs#L55-L80
This conversion can be simplified by leveraging the Enum.TryParse method.