예제 #1
0
 public override void Load()
 {
     MongoDbConnection connection = new MongoDbConnection();
     Bind(typeof(IMongoDatabase)).ToConstant(connection.Database);
     Bind(typeof(IClassDataManager<>)).To(typeof(MongoDbDataManager<>));
     Bind(typeof(IDataManagersFactory)).To(typeof(DataManagersFactory));
 }
예제 #2
0
        public override void Load()
        {
            var connection = new MongoDbConnection();
            Bind(typeof(IMongoDatabase)).ToConstant(connection.Database);
            Bind(typeof(IDataManagersFactory)).To(typeof(UppyFakeDataManagersFactory));

            //Bind(typeof(IClassDataManager<Drawing>)).To(typeof(DrawingListClassFakeDataManager));
            //Bind(typeof(IClassDataManager<TechRoute>)).To(typeof(TechRoutesClassFakeDataManager));
            //Bind(typeof(IClassDataManager<Standart>)).To(typeof(StandartClassFakeDataManager));

            Bind(typeof(IControllerFactory)).To(typeof(ControllersFactory));

            //Bind(typeof(IController<Drawing>)).To(typeof(DrawingController));
            //Bind(typeof(IController<HierarchyNumberDrawing>)).To(typeof(HierarchyNumberDrawingController));
            //Bind(typeof(IController<Standart>)).To(typeof(StandartController));

            Bind(typeof(IFormsBuilder)).To(typeof(FormsBuilder));

            Bind(typeof (IController<TechOperation>)).To(typeof (Controller<TechOperation>));
            Bind(typeof (IController<TechRoute>)).To(typeof (Controller<TechRoute>));
            Bind(typeof (IController<Drawing>)).To(typeof (DrawingController));
            Bind(typeof (IClassDataManager<Drawing>)).To(typeof (DrawingListClassFakeDataManager));




        }
예제 #3
0
 public override void Load()
 {
     var connection = new MongoDbConnection();
     Bind(typeof(IControllersFactory)).To(typeof(UppyControllersFactory));
     Bind(typeof(IUppyControllersFactory)).To(typeof(UppyControllersFactory));
     Bind(typeof(IDataManagersFactory)).To(typeof(UppyDataMangersFactory));
     Bind(typeof(IUppyDataManagersFactory)).To(typeof(UppyDataMangersFactory));
     Bind(typeof(IDataImportToolsFactory)).To(typeof(ToolsFactory));
     Bind(typeof (IMongoDatabase)).ToConstant(connection.Database);
     //Bind(typeof(IOrderDocumentController)).ToConstant(new OrderDocumentController());
 }
예제 #4
0
 public void SetUp()
 {
     mongoDbTest = new MongoDbConnection("mongodb://localhost", "Test" + Environment.TickCount);
 }