public static void SetupInjector() { container = new Container(); container.Options.ResolveUnregisteredConcreteTypes = true; SimpleInjector.Lifestyles.SingletonLifestyle lifestyle = Lifestyle.Singleton; container.Register <IWorkFlowExpert, WorkFlowExpert>(lifestyle); container.Register <IConfigHelper, ConfigHelper>(lifestyle); container.Register <IAgentApi, AgentApi>(lifestyle); container.Register <ILogger, Logger>(lifestyle); container.Register <IWorkFlowService, WorkFlowService>(lifestyle); container.Register <IEmailService, EmailService>(lifestyle); }
public static void SetupInjector() { container = new Container(); container.Options.ResolveUnregisteredConcreteTypes = true; SimpleInjector.Lifestyles.SingletonLifestyle lifestyle = Lifestyle.Singleton; container.Register <IWorkFlowExpert, WorkFlowExpert>(lifestyle); container.Register <IConfigHelper, ConfigHelper>(lifestyle); container.Register <ILogger, Logger>(lifestyle); container.Register <IWorkFlowService, WorkFlowService>(lifestyle); container.Register <IChapterThirteenOptionARMStatement, ChapterThirteenOptionARMStatement>(lifestyle); container.Register <IChapterSevenBillingStatement, ChapterSevenBillingStatement>(lifestyle); container.Register <IChapterThirteenBillingStatement, ChapterThirteenBillingStatement>(lifestyle); container.Register <IStandardBillingStatement, StandardBillingStatement>(lifestyle); container.Register <IOptionARMBillingStatement, OptionARMBillingStatement>(lifestyle); container.Register <ICRL30FileGeneration, CRL30FileGeneration>(lifestyle); container.Register <IOptionAssignmentLogic, OptionAssignmentLogic>(lifestyle); container.Register <IChapterSevenOptionARMStatement, ChapterSevenOptionARMStatement>(lifestyle); container.Register <IRejectStatement, RejectStatement>(lifestyle); }