This project is read-only.

Mock Implementations

May 15, 2012 at 5:02 PM
Edited May 15, 2012 at 5:08 PM

I've touched on this in an issue, but I really need some information on how to implement something like a method in the MockDirectoryInfo class, for example the SetAccessControl method, for which the base calls:

 Directory.SetAccessControl(directoryPath, directorySecurity);

But this looks at a physical directory location which obviously we don't have, so can you give a quick example as to how we should be assigning access controls to the mock object instance?

In which case, should we be doing something like:


If the Parent property had been implemented that is?

Or should we be extending mockFileDataAccessor to get the instance:


I'd imagine this logic would apply to the other classes and methods also, so should make implementations of missing features much easier, I just need clarification as to how you envisaged this working :-)



May 28, 2012 at 3:35 PM

No comments on how this should be implemented?