public void SetUp() { injectionBinder = new InjectionBinder (); injectionBinder.Bind<IInjectionBinder>().Bind<IInstanceProvider>().ToValue(injectionBinder); injectionBinder.Bind<ICommandBinder> ().To<CommandBinder> ().ToSingleton(); commandBinder = injectionBinder.GetInstance<ICommandBinder> (); pooledCommandBinder = commandBinder as IPooledCommandBinder; }
public void SetUp() { injectionBinder = new InjectionBinder(); injectionBinder.Bind <IInjectionBinder>().Bind <IInstanceProvider>().ToValue(injectionBinder); injectionBinder.Bind <ICommandBinder> ().To <CommandBinder> ().ToSingleton(); commandBinder = injectionBinder.GetInstance <ICommandBinder> (); pooledCommandBinder = commandBinder as IPooledCommandBinder; }
public void SetUp() { injectionBinder = new InjectionBinder (); injectionBinder.Bind<IInjectionBinder>().Bind<IInstanceProvider>().ToValue(injectionBinder); injectionBinder.Bind<ICommandBinder> ().To<SignalCommandBinder> ().ToSingleton(); commandBinder = injectionBinder.GetInstance<ICommandBinder> (); pooledCommandBinder = commandBinder as IPooledCommandBinder; singleSignal = new Signal<int>(); doubleSignal = new Signal<int, string>(); tripleSignal = new Signal<int, string, SimpleInterfaceImplementer>(); }
public void SetUp() { injectionBinder = new InjectionBinder(); injectionBinder.Bind <IInjectionBinder>().Bind <IInstanceProvider>().ToValue(injectionBinder); injectionBinder.Bind <ICommandBinder> ().To <SignalCommandBinder> ().ToSingleton(); commandBinder = injectionBinder.GetInstance <ICommandBinder> (); pooledCommandBinder = commandBinder as IPooledCommandBinder; singleSignal = new Signal <int>(); doubleSignal = new Signal <int, string>(); tripleSignal = new Signal <int, string, SimpleInterfaceImplementer>(); }