Exemplo n.º 1
0
        //private static readonly IMailService GmailService;

        static Program()
        {
            Kernel = new StandardKernel();
            NInjectDependencyResolver.Configure(Kernel);
            AccountNumberCreateService = Kernel.Get <IAccountNumberCreateService>();
            // GmailService = Kernel.Get<IMailService>();
        }
Exemplo n.º 2
0
 static Program()
 {
     Kernel = new StandardKernel();
     NInjectDependencyResolver.Configure(Kernel);
     Reader      = Kernel.Get <IReader <string> >();
     Transformer = Kernel.Get <IXmlTransformer>();
 }
        static DependencyResolver()
        {
            var ninjectKernel = new StandardKernel();

            NInjectDependencyResolver.Configure(ninjectKernel);

            AccountService       = ninjectKernel.Get <IAccountService>();
            AccountNumberCreator = ninjectKernel.Get <IAccountNumberCreateService>();
            GmailService         = ninjectKernel.Get <IMailService>();
        }
Exemplo n.º 4
0
 static Program()
 {
     NinjectKernel = new StandardKernel();
     NInjectDependencyResolver.Configure(NinjectKernel);
     AccountIdService = NinjectKernel.Get <IAccountIdService>();
 }
Exemplo n.º 5
0
 public override void Load() =>
 NInjectDependencyResolver.Configure(this.Kernel);