protected override void ConfigureDependencies(Taupo.Contracts.DependencyInjectionContainer container) { base.ConfigureDependencies(container); container.Register <IProtocolFormatNormalizerSelector, DefaultProtocolFormatNormalizerSelector>(); container.Register <IPayloadElementToJsonConverter, AnnotatedPayloadElementToJsonConverter>(); container.Register <IPayloadElementToJsonLightConverter, AnnotatedPayloadElementToJsonLightConverter>(); container.Register <IEntityModelSchemaComparer, ODataEntityModelSchemaComparer>(); }
protected override void ConfigureDependencies(Taupo.Contracts.DependencyInjectionContainer container) { base.ConfigureDependencies(container); // We have to register JSON converter for this test case explicitely since we're using the batch infrastructure // which doesn't inherit the JSON converter from the PayloadReaderTestDescriptor.Settings. container.Register <IPayloadElementToJsonConverter, AnnotatedPayloadElementToJsonConverter>(); container.Register <IPayloadElementToJsonLightConverter, AnnotatedPayloadElementToJsonLightConverter>(); }
/// <summary> /// Configure Dependencies specific to Reader Test Cases /// </summary> /// <param name="container">container to set dependencies on</param> protected override void ConfigureDependencies(Taupo.Contracts.DependencyInjectionContainer container) { base.ConfigureDependencies(container); container.Register <IEntityModelSchemaComparer, TaupoModelComparer>(); container.Register <IODataRequestManager, ODataRequestManager>(); container.Register <IBatchPayloadSerializer, BatchPayloadSerializer>(); container.Register <StackBasedAssertionHandler, DefaultStackBasedAssertionHandler>(); container.Register <IPayloadElementToJsonConverter, AnnotatedPayloadElementToJsonConverter>(); container.Register <IPayloadElementToJsonLightConverter, AnnotatedPayloadElementToJsonLightConverter>(); container.Register <IPayloadGenerator, PayloadGenerator>(); }
/// <summary> /// Does the dependency injection of the BatchPayloadGenerator /// </summary> /// <param name="container">The container to inject the dependencies into.</param> protected override void ConfigureDependencies(Taupo.Contracts.DependencyInjectionContainer container) { base.ConfigureDependencies(container); container.Register <IPayloadGenerator, BatchPayloadGenerator>(); }
/// <summary> /// Configure Dependencies specific to Reader Test Cases /// </summary> /// <param name="container">container to set dependencies on</param> protected override void ConfigureDependencies(Taupo.Contracts.DependencyInjectionContainer container) { base.ConfigureDependencies(container); container.Register <ObjectModelToPayloadElementConverter, ObjectModelToPayloadElementWithPayloadOrderConverter>(); container.RegisterInstance <MessageToObjectModelReader>(new MessageToObjectModelReader(true)); }