public void JsonFormatter_is_registered() { theServices.ServicesFor <IFormatter>().Single(x => x.Type == typeof(JsonFormatter)) .ShouldNotBeNull(); }
public void adds_the_accessor_rules_field_source() { theGraph.ServicesFor <IFieldValidationSource>().ShouldContain(x => x.Type == typeof(AccessorRulesFieldSource)); }
public void registers_the_AuthenticationIsConfigured() { theServiceGraph.ServicesFor <IActivator>().Select(x => x.Type) .ShouldContain(typeof(AuthenticationIsConfigured)); }
private void countForServiceCheck <TService>(int count) { _services.ServicesFor <TService>().ShouldHaveCount(count); }
public void sass_transformer_policy() { _services.ServicesFor <ITransformerPolicy>() .ShouldContain(x => x.Type.CanBeCastTo <SassTransformerPolicy>()); }
public void coffee_transformer_policy() { _services.ServicesFor <ITransformerPolicy>() .ShouldContain(x => x.Type.CanBeCastTo <CoffeeTransformerPolicy>()); }
public void log_modifier_for_persistent_task_messages_is_registered() { services.ServicesFor <ILogModifier>().Any(x => x.Type == typeof(PersistentTaskMessageModifier)) .ShouldBeTrue(); }