public virtual Machine buildMachine(IVirtualMachineProxy proxy)
        {
            Machine m = new Machine(proxy);

            m.ShutdownMethod = ShutdownMethodFactory.createShutdownMethod();
            return(m);
        }
Beispiel #2
0
        public void GetMachineProxyDescriptionFilterTest()
        {
            DescriptionBasedInfoProvider target = new DescriptionBasedInfoProvider(_mockedVirtualMachineProxy.Object);

            IVirtualMachineProxy filteredProxy = target.GetMachineProxyDescriptionFilter();

            Assert.AreEqual("Wolf", filteredProxy.getDescription());
        }
Beispiel #3
0
        public override Machine buildMachine(IVirtualMachineProxy proxy)
        {
            DescriptionBasedInfoProvider infoProvider = new DescriptionBasedInfoProvider(proxy);
            ServiceAwareMachine          m            = new ServiceAwareMachine(infoProvider.GetMachineProxyDescriptionFilter());

            m.ServiceInfoProvider = infoProvider;
            return(m);
        }
Beispiel #4
0
 protected internal Machine(IVirtualMachineProxy machineProxy)
 {
     _proxy = machineProxy;
 }
 internal ServiceAwareMachine(IVirtualMachineProxy proxy) : base(proxy) { }
Beispiel #6
0
 protected internal Machine(IVirtualMachineProxy machineProxy) {
     _proxy = machineProxy;
 }
Beispiel #7
0
 internal ServiceAwareMachine(IVirtualMachineProxy proxy) : base(proxy)
 {
 }
 public override Machine buildMachine(IVirtualMachineProxy proxy) {
     DescriptionBasedInfoProvider infoProvider = new DescriptionBasedInfoProvider(proxy);
     ServiceAwareMachine m = new ServiceAwareMachine(infoProvider.GetMachineProxyDescriptionFilter());
     m.ServiceInfoProvider = infoProvider;
     return m;
 }
 public DescriptionBasedInfoProvider(IVirtualMachineProxy proxy) {
     _proxy = proxy;
     _filteredProxy = new MachineProxyDescriptionFilter(proxy, this);
 }
 public MachineProxyDescriptionFilter(IVirtualMachineProxy innerProxy, DescriptionBasedInfoProvider innerDescriptionInfoProvider) {
     _innerProxy = innerProxy;
     _innerDescriptionInfoProvider = innerDescriptionInfoProvider;
 }
 public DescriptionBasedInfoProvider(IVirtualMachineProxy proxy)
 {
     _proxy         = proxy;
     _filteredProxy = new MachineProxyDescriptionFilter(proxy, this);
 }
 public MachineProxyDescriptionFilter(IVirtualMachineProxy innerProxy, DescriptionBasedInfoProvider innerDescriptionInfoProvider)
 {
     _innerProxy = innerProxy;
     _innerDescriptionInfoProvider = innerDescriptionInfoProvider;
 }
		public virtual Machine buildMachine(IVirtualMachineProxy proxy)
		{
            Machine m = new Machine(proxy);
            m.ShutdownMethod = ShutdownMethodFactory.createShutdownMethod();
            return m;
		}