/// <summary>
 /// 完成容器使用
 /// </summary>
 protected static void FinishUsingContainer()
 {
     ContainerFactoryBase <TContainerFactory> .RestContainerBuilder();
 }
 /// <summary>
 /// 使用 Autofac DI 容器
 /// </summary>
 /// <returns>Autofac DI 容器</returns>
 protected IContainer UseAutofacContainer()
 {
     return(ContainerFactoryBase <TContainerFactory> .GetInstance().Container);
 }
 /// <summary>
 /// 初始化支援額外類型註冊之相依性注入的測試類別
 /// </summary>
 /// <param name="externalRegistrar">額外註冊的類別委派</param>
 protected static void UseExternalRegistrar(Action <ContainerBuilder> externalRegistrar)
 {
     ContainerFactoryBase <TContainerFactory> .InitExternalRegistrarInstance(externalRegistrar);
 }