public void Setup() { Setup("fakemac"); var ip6s = new[] { new Ipv6Tuple { enabled = "1", ip = "2001:4801:787F:202:278E:89D8:FF06:B476", netmask = "96", gateway = "fe80::def" } }; NetworkInterface = new NetworkInterfaceBuilder().withIp6s(ip6s).withMacAddress("fakemac"). withIps(new Ipv4Tuple[] { }).build(); SetNetworkInterface = new SetNetworkInterface(ExecutableProcessQueue, WmiMacNetworkNameGetter, Logger, _mockIPFinder); }
public void Setup() { Setup("fakemac", true); ExecutableProcessQueue.Expect(x => x.Go()).Repeat.Once(); SetNetworkInterface = new SetNetworkInterface(ExecutableProcessQueue, WmiMacNetworkNameGetter, Logger); }
public void Setup() { Setup("fakemac"); ExecutableProcessQueue.Expect(x => x.Go()).Repeat.Twice(); SetNetworkInterface = new SetNetworkInterface(ExecutableProcessQueue, WmiMacNetworkNameGetter, Logger); SetNetworkInterface.Execute(new List<NetworkInterface>{NetworkInterface}); }
public void Setup() { Setup("some_mac_not_found"); ExecutableProcessQueue.Expect(x => x.Go()).Repeat.Once(); SetNetworkInterface = new SetNetworkInterface(ExecutableProcessQueue, WmiMacNetworkNameGetter, Logger); }
public void Setup() { Setup("fakemac", false, false, true); ExecutableProcessQueue.Expect(x => x.Go()).Repeat.Once(); SetNetworkInterface = new SetNetworkInterface(ExecutableProcessQueue, WmiMacNetworkNameGetter, Logger, new IPFinder()); SetNetworkInterface.Execute(new List<NetworkInterface> { NetworkInterface }); }