Ejemplo n.º 1
0
        /// <summary>Used to register concrete implemtations to the DI container</summary>
        /// <param name="registrar">add implementation to the DI container using this registrar</param>
        public void Initialize(IModuleRegistrar registrar)
        {
            //You can register as many types as you want into the Container

            registrar.RegisterTypeAsSingelton <IExternalProductService, WALMARTProductService>("Walmart");
            registrar.RegisterTypeAsSingelton <IExternalProductService, WALMARTProductService>();
        }
Ejemplo n.º 2
0
        /// <summary>Used to register concrete implementations to the DI container</summary>
        /// <param name="registrar">add implementation to the DI container using this registrar</param>
        public void Initialize(IModuleRegistrar registrar)
        {
            Contract.Requires(registrar != null);

            registrar.RegisterTypeAsSingelton <ICipher, RijndaelManagedCipher>();
            registrar.RegisterTypeAsSingelton <ISecurity, SecurityService>();
        }
Ejemplo n.º 3
0
        /// <summary>Used to register concrete implemtations to the DI container</summary>
        /// <param name="registrar">add implementation to the DI container using this registrar</param>
        public void Initialize(IModuleRegistrar registrar)
        {
            //You can register as many types as you want into the Container

            registrar.RegisterTypeAsSingelton <IExternalProductService, BESTBUYProductService>("BestBuy");
            registrar.RegisterTypeAsSingelton <IExternalProductService, BESTBUYProductService>();
        }
Ejemplo n.º 4
0
        /// <summary>Used to register concrete implementations to the DI container</summary>
        /// <param name="registrar">add implementation to the DI container using this registrar</param>
        public void Initialize(IModuleRegistrar registrar)
        {
            Contract.Requires(registrar != null);

            registrar.RegisterTypeAsSingelton <DbContextOptions <GenericContext>, DbContextOptions <GenericContext> >(SettingsManager.DBOptions);
            registrar.RegisterType <GenericContext, GenericContext>();
            registrar.RegisterType <IGenericRepo, GenericRepo>();
        }
Ejemplo n.º 5
0
        /// <summary>Used to register concrete implementations to the DI container</summary>
        /// <param name="registrar">add implementation to the DI container using this registrar</param>
        public void Initialize(IModuleRegistrar registrar)
        {
            Contract.Requires(registrar != null);

            //You can register as many types as you want into the Container

            //registrar.RegisterType<ITest, Test>();
            //registrar.RegisterTypeAsSingelton<ITest, Test>();

            registrar.RegisterTypeAsSingelton <ICaptcha, GoogleRecaptcha>();
        }
Ejemplo n.º 6
0
 /// <summary>Used to register concrete implemtations to the DI container</summary>
 /// <param name="registrar">add implementation to the DI container using this registrar</param>
 public void Initialize(IModuleRegistrar registrar)
 {
     registrar.RegisterTypeAsSingelton <IDAL, DALMoq>();
 }
Ejemplo n.º 7
0
 /// <summary>Used to register concrete implemtations to the DI container</summary>
 /// <param name="registrar">add implementation to the DI container using this registrar</param>
 public void Initialize(IModuleRegistrar registrar)
 {
     registrar.RegisterTypeAsSingelton <ICipher, TripleDES>();
     registrar.RegisterTypeAsSingelton <ISecurity, SecurityService>();
 }
Ejemplo n.º 8
0
        /// <summary>Used to register concrete implementations to the DI container</summary>
        /// <param name="registrar">add implementation to the DI container using this registrar</param>
        public void Initialize(IModuleRegistrar registrar)
        {
            Contract.Requires(registrar != null);

            registrar.RegisterTypeAsSingelton <ISecurity, SecurityMock>();
        }
Ejemplo n.º 9
0
 /// <summary>Used to register concrete implemtations to the DI container</summary>
 /// <param name="registrar">add implementation to the DI container using this registrar</param>
 public void Initialize(IModuleRegistrar registrar)
 {
     registrar.RegisterTypeAsSingelton <ISecurity, SecurityMoq>();
 }
Ejemplo n.º 10
0
        /// <summary>Used to register concrete implementations to the DI container</summary>
        /// <param name="registrar">add implementation to the DI container using this registrar</param>
        public void Initialize(IModuleRegistrar registrar)
        {
            Contract.Requires(registrar != null);

            registrar.RegisterTypeAsSingelton <IProxy, Proxy>();
        }
Ejemplo n.º 11
0
 /// <summary>Used to register concrete implemtations to the DI container</summary>
 /// <param name="registrar">add implementation to the DI container using this registrar</param>
 public void Initialize(IModuleRegistrar registrar)
 {
     registrar.RegisterType <IBL, BL>();
     registrar.RegisterTypeAsSingelton <HashHelpers, HashHelpers>();
 }
Ejemplo n.º 12
0
 /// <summary>Used to register concrete implemtations to the DI container</summary>
 /// <param name="registrar">add implementation to the DI container using this registrar</param>
 public void Initialize(IModuleRegistrar registrar)
 {
     registrar.RegisterType <IDAL, DAL>();
     registrar.RegisterTypeAsSingelton <BusContext, BusContext>();
 }