public T Instance <T>(params GenerationCustomization[] customizations) { var trace = new ListBasedGenerationTrace(); try { trace.BeginCreatingInstanceGraphWith(typeof(T)); return(_fakeChainFactory.GetInstance <T>().Resolve(new CustomizedGenerator(SynchronizedThis, customizations), trace)); } catch (Exception e) { throw new GenerationFailedException(trace, e); } }
public T Instance <T>() { return(_fakeChainFactory.GetInstance <T>().Resolve(this)); }