Esempio n. 1
0
        public IKernel GetKernel()
        {
            var kernel = new StandardKernel();

            RegisterUtilities(kernel);

            BlDependenciesModule.Register(kernel);

            return(kernel);
        }
        public static void Register(IKernel kernel)
        {
            kernel.Bind <IIoHelper>().To <IoHelper>();
            kernel.Bind <ISimulatorDataCaptureService>().To <SimulatorDataCaptureService>();
            kernel.Bind <IPhoneSimulatorMenu>().To <PhoneSimulatorMenu>();
            kernel.Bind <IDetailsDisplay>().To <DetailsDisplay>();
            kernel.Bind <ISmsDataCapture>().To <SmsDataCapture>();
            kernel.Bind <IConnectionDataCapture>().To <ConnectionDataCapture>();
            kernel.Bind <IModelDisplay>().To <ModelDisplay>();

            BlDependenciesModule.Register(kernel);
        }
        public static void Register(IKernel kernel)
        {
            kernel.Bind <ISubscribersSystemMenu>().To <SubscribersSystemMenu>();
            kernel.Bind <IIoHelper>().To <IoHelper>();
            kernel.Bind <ISystemDataCaptureService>().To <SystemDataCaptureService>();
            kernel.Bind <IOfferDataCapture>().To <OfferDataCapture>();
            kernel.Bind <ISubscriberDataCapture>().To <SubscriberDataCapture>();
            kernel.Bind <IPhoneDataCapture>().To <PhoneDataCapture>();
            kernel.Bind <IInvoiceDataCapture>().To <InvoiceDataCapture>();
            kernel.Bind <IDetailsDisplay>().To <DetailsDisplay>();
            kernel.Bind <IModelDisplay>().To <ModelDisplay>();
            kernel.Bind <ISerializerProvider>().To <SerializerProvider>();

            BlDependenciesModule.Register(kernel);
        }