/// <summary> /// Creates a fake of the type specified by <typeparamref name = "TInterfaceType" />. /// This method reuses existing instances. If an instance of <typeparamref name = "TInterfaceType" /> /// was already requested it's returned here. (You can say this is kind of a singleton behavior) /// Besides that, you can obtain a reference to automatically injected fakes with this /// method. /// </summary> /// <typeparam name = "TInterfaceType">The type to create a fake for. (Should be an interface or an abstract class)</typeparam> /// <returns> /// An instance implementing <typeparamref name="TInterfaceType" />. /// </returns> protected static TInterfaceType The <TInterfaceType>() where TInterfaceType : class { GuardAgainstStaticContext(); return(_specificationController.The <TInterfaceType>()); }
protected static TInterfaceType The <TInterfaceType>() where TInterfaceType : class { return(specificationController.The <TInterfaceType>()); }