Exemplo n.º 1
0
 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));
 }
Exemplo n.º 3
0
 public void registers_the_AuthenticationIsConfigured()
 {
     theServiceGraph.ServicesFor <IActivator>().Select(x => x.Type)
     .ShouldContain(typeof(AuthenticationIsConfigured));
 }
Exemplo n.º 4
0
 private void countForServiceCheck <TService>(int count)
 {
     _services.ServicesFor <TService>().ShouldHaveCount(count);
 }
Exemplo n.º 5
0
 public void sass_transformer_policy()
 {
     _services.ServicesFor <ITransformerPolicy>()
     .ShouldContain(x => x.Type.CanBeCastTo <SassTransformerPolicy>());
 }
Exemplo n.º 6
0
 public void coffee_transformer_policy()
 {
     _services.ServicesFor <ITransformerPolicy>()
     .ShouldContain(x => x.Type.CanBeCastTo <CoffeeTransformerPolicy>());
 }
Exemplo n.º 7
0
 public void log_modifier_for_persistent_task_messages_is_registered()
 {
     services.ServicesFor <ILogModifier>().Any(x => x.Type == typeof(PersistentTaskMessageModifier))
     .ShouldBeTrue();
 }