public void Should_pull_the_network_adapter_mac_address()
        {
            var networkIdProvider = new NetworkAddressWorkerIdProvider();

            byte[] networkId = networkIdProvider.GetWorkerId(0);

            Assert.IsNotNull(networkId);
            Assert.AreEqual(6, networkId.Length);
        }
示例#2
0
        public void Should_pull_the_network_adapter_mac_address()
        {
            var networkIdProvider = new NetworkAddressWorkerIdProvider();

            byte[] networkId = networkIdProvider.GetWorkerId(0);

            Assert.IsNotNull(networkId);
            Assert.AreEqual(6, networkId.Length);
        }
示例#3
0
        public void Should_match_perhaps()
        {
            var networkAddressWorkerIdProvider = new NetworkAddressWorkerIdProvider();

            byte[] firstId = networkAddressWorkerIdProvider.GetWorkerId(0);

            var wmiNetworkAddressWorkerIdProvider = new WmiNetworkAddressWorkerIdProvider();

            byte[] secondId = wmiNetworkAddressWorkerIdProvider.GetWorkerId(2);


            Assert.AreEqual(firstId, secondId);
        }
示例#4
0
        public void Should_match_perhaps()
        {
            var networkAddressWorkerIdProvider = new NetworkAddressWorkerIdProvider();

            byte[] firstId = networkAddressWorkerIdProvider.GetWorkerId(0);

            var wmiNetworkAddressWorkerIdProvider = new WmiNetworkAddressWorkerIdProvider();

            byte[] secondId = wmiNetworkAddressWorkerIdProvider.GetWorkerId(2);


            Assert.AreEqual(firstId, secondId);
        }