コード例 #1
0
        public void Setup()
        {
            _helper = new SectionGroupSingletonHelper<TestGroup>("TestGroup");

            var locator = new StaticConfigurationLocator("SectionGroupSingletonHelper");
            _config = locator.Locate();

            _locator = new Mock<IConfigurationLocator>();
            _locator.Setup(c => c.Locate()).Returns(_config);
        }
コード例 #2
0
 public void Setup()
 {
     var locater = new StaticConfigurationLocator("Layer");
     var config = locater.Locate();
     _sectiongrp = config.GetSection("ExtractionLayer") as ExtractionLayerConfig;
 }