PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/Bifrost.Specs/Execution/for_BindingConventionManager/given/a_binding_convention_manager_with_one_type.cs

#
C# | 16 lines | 14 code | 2 blank | 0 comment | 0 complexity | c892d196899dde568871ca45b7478e70 MD5 | raw file
 1using System;
 2using Machine.Specifications;
 3
 4namespace Bifrost.Specs.Execution.for_BindingConventionManager.given
 5{
 6    public class a_binding_convention_manager_with_one_type : a_binding_convention_manager
 7    {
 8        protected static Type service_type;
 9
10        Establish context = () =>
11                                {
12                                    service_type = typeof (IService);
13                                    type_discoverer_mock.Setup(t => t.GetAll()).Returns(new[] {service_type});
14                                };
15    }
16}