public SubstituteFactory(ISubstitutionContext context, ICallRouterFactory callRouterFactory, IProxyFactory proxyFactory, ICallRouterResolver callRouterResolver)
 {
     _context = context;
     _callRouterFactory = callRouterFactory;
     _proxyFactory = proxyFactory;
     _callRouterResolver = callRouterResolver;
 }
Exemple #2
0
 public SubstituteFactory(ISubstitutionContext context, ICallRouterFactory callRouterFactory, IProxyFactory proxyFactory, ICallRouterResolver callRouterResolver)
 {
     _context            = context;
     _callRouterFactory  = callRouterFactory;
     _proxyFactory       = proxyFactory;
     _callRouterResolver = callRouterResolver;
 }
 public ComponentSubstituteFactory(ICallRouterFactory callRouterFactory,
                                   ComponentProxyFactory proxyFactory, ICallRouterResolver callRouterResolver)
 {
     _callRouterFactory  = callRouterFactory;
     _proxyFactory       = proxyFactory;
     _callRouterResolver = callRouterResolver;
 }
Exemple #4
0
 public override void Context()
 {
     base.Context();
     _context            = mock <ISubstitutionContext>();
     _callRouterFactory  = mock <ICallRouterFactory>();
     _proxyFactory       = mock <IProxyFactory>();
     _callRouterResolver = mock <ICallRouterResolver>();
 }
 public SubstituteFactory(ISubstituteStateFactory substituteStateFactory, ICallRouterFactory callRouterFactory, IProxyFactory proxyFactory)
 {
     _substituteStateFactory = substituteStateFactory ?? throw new ArgumentNullException(nameof(substituteStateFactory));
     _callRouterFactory      = callRouterFactory ?? throw new ArgumentNullException(nameof(callRouterFactory));
     _proxyFactory           = proxyFactory ?? throw new ArgumentNullException(nameof(proxyFactory));
 }
 public SubstituteFactory(ISubstituteStateFactory substituteStateFactory, ICallRouterFactory callRouterFactory, IProxyFactory proxyFactory)
 {
     _substituteStateFactory = substituteStateFactory;
     _callRouterFactory      = callRouterFactory;
     _proxyFactory           = proxyFactory;
 }