public void Should_be_possible_to_create_a_system_information_with_data_about_the_operationalSystem()
        {
            WmiDataProviderExpectFactory wmiFactory = new WmiDataProviderExpectFactory();

            WindowsSystemInformationFactory factory = new WindowsSystemInformationFactory();
            SystemInformation systemInformation = factory.CreateSystemInformation(
                                                        wmiFactory.GetWmiObjectsForComputerSystemQuery(),
                                                        wmiFactory.GetWmiObjectsForOperatingSystemQuery(),
                                                        wmiFactory.GetWmiObjectsForNetworkInterfaces());

            Assert.AreEqual("Microsoft Windows Server 2008 Enterprise SP2", systemInformation.SystemName, "the systemName is not expected");
            Assert.AreEqual("6.0.6002", systemInformation.SystemVersion, "the systemVersion is not expected");
        }
        public void Should_be_possible_to_create_a_system_information_with_data_about_the_hostName()
        {
            WmiDataProviderExpectFactory wmiFactory = new WmiDataProviderExpectFactory();

            WindowsSystemInformationFactory factory = new WindowsSystemInformationFactory();
            SystemInformation systemInformation = factory.CreateSystemInformation(
                                                        wmiFactory.GetWmiObjectsForComputerSystemQuery(),
                                                        wmiFactory.GetWmiObjectsForOperatingSystemQuery(),
                                                        wmiFactory.GetWmiObjectsForNetworkInterfaces());

            Assert.AreEqual("mss-rj-220.mss.modulo.com.br", systemInformation.PrimaryHostName, "the primaryHostName is not expected");
            Assert.AreEqual("INTEL32", systemInformation.Architecture, "the architecture is not expected");
        }
        public void Should_be_possible_to_create_a_system_information_with_data_about_the_networkInterfaces()
        {
            WmiDataProviderExpectFactory wmiFactory = new WmiDataProviderExpectFactory();

            WindowsSystemInformationFactory factory = new WindowsSystemInformationFactory();
            SystemInformation systemInformation = factory.CreateSystemInformation(
                                                        wmiFactory.GetWmiObjectsForComputerSystemQuery(),
                                                        wmiFactory.GetWmiObjectsForOperatingSystemQuery(),
                                                        wmiFactory.GetWmiObjectsForNetworkInterfaces());

            Assert.IsNotNull(systemInformation.Interfaces, "the interfaces is not created");
            Assert.AreEqual(systemInformation.Interfaces.Count,1, "the quantity of interfaces is not expected");
            Assert.AreEqual("172.16.3.166", systemInformation.Interfaces[0].IpAddress, "the ip address is not expected");
            Assert.AreEqual("00 - 23 - AE - B6 - 6F - BF", systemInformation.Interfaces[0].MacAddress, "the mac address is not expected");
            Assert.AreEqual("Intel(R) 82567LM-3 Gigabit Network Connection", systemInformation.Interfaces[0].Name, "the name is not expected");
        }