PageRenderTime 19ms CodeModel.GetById 10ms app.highlight 4ms RepoModel.GetById 1ms 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
 1using System;
 2using Bifrost.Execution;
 3
 4namespace Bifrost.Specs.Execution.for_BindingConventionManager
 5{
 6    public class FakeBindingConvention : IBindingConvention
 7    {
 8        public bool CanResolveCalled = false;
 9        public bool CanResolveProperty = false;
10        public bool CanResolve(Type service)
11        {
12            CanResolveCalled = true;
13            return CanResolveProperty;
14        }
15
16
17        public bool ResolveCalled = false;
18        public void Resolve(IContainer container, Type service)
19        {
20            ResolveCalled = true;
21        }
22    }
23}