Line data Source code
1 : #region Copyright
2 : // // -----------------------------------------------------------------------
3 : // // <copyright company="Chinchilla Software Limited">
4 : // // Copyright Chinchilla Software Limited. All rights reserved.
5 : // // </copyright>
6 : // // -----------------------------------------------------------------------
7 : #endregion
8 :
9 : using Cqrs.Azure.DocumentDb.Factories;
10 : using Cqrs.Ninject.Azure.DocumentDb.Factories;
11 : using Ninject.Modules;
12 :
13 : namespace Cqrs.Ninject.Azure.DocumentDb.Configuration
14 : {
15 : /// <summary>
16 : /// A <see cref="INinjectModule"/> that wires up <see cref="TestAzureDocumentDbDataStoreConnectionStringFactory"/> as the
17 : /// <see cref="IAzureDocumentDbDataStoreConnectionStringFactory"/>.
18 : /// </summary>
19 : public class TestAzureDocumentDbModule : AzureDocumentDbModule
20 1 : {
21 : /// <summary>
22 : /// Register the all factories
23 : /// </summary>
24 1 : public override void RegisterFactories()
25 : {
26 : Bind<IAzureDocumentDbDataStoreConnectionStringFactory>()
27 : .To<TestAzureDocumentDbDataStoreConnectionStringFactory>()
28 : .InSingletonScope();
29 : }
30 : }
31 : }
|