Closed
Description
I have a scenario where I want to convert some json to yaml and this looks like the easiest path, but one worrying thing is that there is no interface for Serializer
or Deserializer
so it is difficult to mock, is there any reason why there is no IYamlSerializer
or IYamlDeseralizer
or anything which those classes implement so we can then just use that as the contract and mock the Serializer
dependencies for unit testing etc?
Activity
aaubry commentedon Sep 20, 2018
There's no particular reason for that. If you want to extract the interfaces and submit a pull request, I will publish an updated package immediately.
Updated to add interfaces for serializers
grofit commentedon Sep 26, 2018
Closing this as the merge has added interfaces.