public void should_set_interface_from_interfaceconfigiuration() { setNetworkInterface.AssertWasCalled(x => x.Execute(new List <NetworkInterface> { networkInterface })); setNetworkRoutes.AssertWasCalled(x => x.Execute(network)); setProviderData.AssertWasCalled(x => x.Execute(providerData)); }
public void should_set_interface_from_interfaceconfigiuration() { xenNetworkInformation.Stub(x => x.Get()).Return(network); xenProviderDataInformation.Stub(x => x.Get()).Return(providerData); _xenStore.Stub(x => x.ReadVmData("hostname")).Return(hostname); result = command.Execute(null); setNetworkInterface.AssertWasCalled(x => x.Execute(new List <NetworkInterface> { networkInterface })); setNetworkRoutes.AssertWasCalled(x => x.Execute(network)); setProviderData.AssertWasCalled(x => x.Execute(providerData)); setHostname.AssertWasCalled(x => x.SetHostname(hostname)); }