ava-innersource / Liquid-Application-Framework-1.0-deprecated

Liquid is a framework to speed up the development of microservices
MIT License
25 stars 14 forks source link

Conversion to WorkBenchServiceHttp within MethodStubAPIConfiguration can be simplified #132

Closed guilhermeluizsp closed 4 years ago

guilhermeluizsp commented 4 years ago

The property WorkBenchServiceHttp inside the MethodStubAPIConfiguration class maps the Name property to an WorkBenchServiceHttp 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.