PageRenderTime 49ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/Source/Bifrost.Specs/Execution/for_BindingConventionManager/FakeBindingConvention.cs

#
C# | 23 lines | 20 code | 3 blank | 0 comment | 0 complexity | ab325a9d682f8a3493610e0785dc65b8 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. using System;
  2. using Bifrost.Execution;
  3. namespace Bifrost.Specs.Execution.for_BindingConventionManager
  4. {
  5. public class FakeBindingConvention : IBindingConvention
  6. {
  7. public bool CanResolveCalled = false;
  8. public bool CanResolveProperty = false;
  9. public bool CanResolve(Type service)
  10. {
  11. CanResolveCalled = true;
  12. return CanResolveProperty;
  13. }
  14. public bool ResolveCalled = false;
  15. public void Resolve(IContainer container, Type service)
  16. {
  17. ResolveCalled = true;
  18. }
  19. }
  20. }