Example #1
0
        protected override void Initialize()
        {
            Model = new TestModel();

            var references = new References();

            _loggingController = new LoggingController();

            _moqLoggingPersistence = new Mock <ILoggingPersistence>();
            _loggingPersistence    = _moqLoggingPersistence.Object;

            references.Put(new Descriptor("pip-services-logging", "persistence", "memory", "default", "1.0"), _loggingPersistence);
            references.Put(new Descriptor("pip-services-logging", "controller", "default", "default", "1.0"), _loggingController);

            _loggingController.SetReferences(references);
        }