public AutofacContainer(CustomizeBehaviorApi customizations) { if (customizations == null) { customizations = new CustomizeBehaviorApi(); } _customizations = customizations; }
public static void Initialize(Action <CustomizeBehaviorApi> customize = null) { var api = new CustomizeBehaviorApi(); customize?.Invoke(api); AutofacTest.Customizations = api; }
public static void Initialize(Action <CustomizeBehaviorApi> customize = null) { var api = new CustomizeBehaviorApi(); customize?.Invoke(api); ScenarioBase.ContainerFactory = () => new AutofacContainer(api); }
public AutofacContainer(CustomizeBehaviorApi customizations) { _customizations = customizations; }