-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate Interfaces and provide NuGet Packages #1
Comments
You are welcome, we are glad NDepend.Path is useful to you. This is indeed weird that in 2015 to handle paths in .NET the proposed solution is to use strings with Path.Combine(...) ?! Notice that separation of interfaces and implementation is not needed for mocking testing purposes, since many tests actually use the file system to test without mocking. |
You are right of course. I should have described more precisely what my intention is. I first ran into the problem when trying to test time dependent code where calls to DateTime.Now occur. I encapsulated these calls and then thougth about the underlying problem: all calls to system resources. I have had such problems before and the reason was that the implementation was shipped with the api. To break such a circular dependencies one has to separate them. i will give it some more thought how to solve this problem with as few changes as possible. are you interested to see NDepend.Path published as NuGet on NuGet.org? if yes then i would generate a NuGet spec and provide it for prior review as well as post the NuGet once approved by you. |
Thanks for your explanations,
|
i just created a pull request where i added a nuspec file and filled in some information i took from the project description. if you are ok with the contents i will upload a nuget and symbolpackage to nuget.org. |
i just wanted to let you know that i did publish a nuget package to nuget.org. see https://www.nuget.org/packages/NDepend.Path/1.0.0 |
Awesome! ndepend@ndepend https://twitter.com/ndepend NDepend.Path published as a NuGet package! https://www. On Wed, Apr 15, 2015 at 5:55 PM, verinus notifications@github.com wrote:
|
First: let me thank you for open sourcing this remarkable piece of software.
I have long criticized that the .net framework does not provide a simple mean to model file paths but defaults to strings instead. To Build upon this Lib I want to do the following two things:
The separation of interfaces and implementation is a crucial point for reuse as I want to build an abstraction layer to encapsulate all system interaction (file system, envvars, time,...) that allows for easy mocking of said functionality and still use your Lib.
However your implementation directly uses file system and envvar functionality.
Once complete I would provide an implementation where the abstraction layer is extended to the implementation of NDepend.Path.
I am currently working on these features in my fork and wanted to get some feedback.
The text was updated successfully, but these errors were encountered: