PageRenderTime 52ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/src/Castle.IO/Contracts/IDirectoryAdapterContract.cs

https://github.com/castleproject/Castle.Transactions
C# | 77 lines | 53 code | 11 blank | 13 comment | 0 complexity | ed022b8736edb1bc5ac755b9a5344ac2 MD5 | raw file
Possible License(s): Apache-2.0
  1. #region license
  2. // Copyright 2004-2012 Castle Project, Henrik Feldt &contributors - https://github.com/castleproject
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. #endregion
  16. using System;
  17. using System.Diagnostics.Contracts;
  18. namespace Castle.IO.Contracts
  19. {
  20. [ContractClassFor(typeof (IDirectoryAdapter))]
  21. internal abstract class IDirectoryAdapterContract : IDirectoryAdapter
  22. {
  23. bool IDirectoryAdapter.Create(string path)
  24. {
  25. Contract.Requires(!string.IsNullOrEmpty(path));
  26. throw new NotImplementedException();
  27. }
  28. bool IDirectoryAdapter.Exists(string path)
  29. {
  30. Contract.Requires(!string.IsNullOrEmpty(path));
  31. throw new NotImplementedException();
  32. }
  33. void IDirectoryAdapter.Delete(string path)
  34. {
  35. Contract.Requires(!string.IsNullOrEmpty(path));
  36. throw new NotImplementedException();
  37. }
  38. bool IDirectoryAdapter.Delete(string path, bool recursively)
  39. {
  40. Contract.Requires(!string.IsNullOrEmpty(path));
  41. throw new NotImplementedException();
  42. }
  43. string IDirectoryAdapter.GetFullPath(string relativeDir)
  44. {
  45. Contract.Requires(!string.IsNullOrEmpty(relativeDir));
  46. throw new NotImplementedException();
  47. }
  48. string IDirectoryAdapter.MapPath(string path)
  49. {
  50. Contract.Requires(!string.IsNullOrEmpty(path));
  51. throw new NotImplementedException();
  52. }
  53. void IDirectoryAdapter.Move(string originalPath, string newPath)
  54. {
  55. Contract.Requires(!string.IsNullOrEmpty(originalPath));
  56. Contract.Requires(!string.IsNullOrEmpty(newPath));
  57. throw new NotImplementedException();
  58. }
  59. void IDirectoryAdapter.Move(string originalPath, string newPath, bool overwrite)
  60. {
  61. Contract.Requires(!string.IsNullOrEmpty(originalPath));
  62. Contract.Requires(!string.IsNullOrEmpty(newPath));
  63. throw new NotImplementedException();
  64. }
  65. }
  66. }