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
20 : : AzureDocumentDbModule
21 1 : {
22 : /// <summary>
23 : /// Register the all factories
24 : /// </summary>
25 1 : public override void RegisterFactories()
26 : {
27 : Bind<IAzureDocumentDbDataStoreConnectionStringFactory>()
28 : .To<TestAzureDocumentDbDataStoreConnectionStringFactory>()
29 : .InSingletonScope();
30 : }
31 : }
32 : }
|