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