public AutofacContainer(CustomizeBehaviorApi customizations)
 {
     if (customizations == null)
     {
         customizations = new CustomizeBehaviorApi();
     }
     _customizations = customizations;
 }
示例#2
0
        public static void Initialize(Action <CustomizeBehaviorApi> customize = null)
        {
            var api = new CustomizeBehaviorApi();

            customize?.Invoke(api);

            AutofacTest.Customizations = api;
        }
示例#3
0
        public static void Initialize(Action <CustomizeBehaviorApi> customize = null)
        {
            var api = new CustomizeBehaviorApi();

            customize?.Invoke(api);

            ScenarioBase.ContainerFactory = () => new AutofacContainer(api);
        }
示例#4
0
 public AutofacContainer(CustomizeBehaviorApi customizations)
 {
     _customizations = customizations;
 }