private ObjectDef verifyDefaultType <TService, TConcrete>() { var def = theGraph.DefaultServiceFor <TService>(); def.Type.ShouldEqual(typeof(TConcrete)); return(def); }
private void theDefaultServiceIs <TPlugin, TImplementation>() { theServiceGraph.DefaultServiceFor <TPlugin>() .Type.ShouldEqual(typeof(TImplementation)); }
public void template_registry() { _services.DefaultServiceFor <ITemplateRegistry <ITemplate> >() .Value.ShouldBeOfType <TemplateRegistry <ITemplate> >(); }
public void default_resource_not_found_handler_is_registered() { theServices.DefaultServiceFor <IResourceNotFoundHandler>() .Type.ShouldEqual(typeof(DefaultResourceNotFoundHandler)); }
public void coffee_compiler() { _services .DefaultServiceFor <ICoffeeCompiler>() .ShouldNotBeNull(); }
public void sass_compiler() { _services.DefaultServiceFor <ISassCompiler>().ShouldNotBeNull() .Type.ShouldEqual(typeof(DefaultSassCompiler)); }
private void registeredTypeIs <TService, TImplementation>() { _serviceGraph.DefaultServiceFor <TService>().Type.ShouldEqual( typeof(TImplementation)); }
public void less_engine() { _services.DefaultServiceFor <ILessEngine>() .Value.ShouldBeOfType <LessEngine>(); }
public void NewtonSoftJsonReader_is_registered() { services.DefaultServiceFor <IJsonReader>() .Type.ShouldEqual(typeof(NewtonSoftJsonReader)); }
public void javascript_compressor_is_registered() { theServices.DefaultServiceFor <IJavaScriptCompressor>() .Type.ShouldEqual(typeof(JavaScriptCompressor)); }
private void registeredTypeIs(Type service, Type implementation) { services.DefaultServiceFor(service) .Type.ShouldEqual(implementation); }
public void value_source_is_registered() { theServices.DefaultServiceFor(typeof(IValueSource <>)).Type.ShouldEqual(typeof(ValueSource <>)); }
public void less_engine() { _services.DefaultServiceFor <ILessEngine>() .ShouldNotBeNull() .Type.ShouldEqual(typeof(DefaultEngine)); }