示例#1
0
		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;
		}
示例#2
0
        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>();
		}
示例#4
0
        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>();
        }