public void ValidateOrdersForNewLicenseFlagsMissingLicenseKeysAndAlreadyExistingOnes()
        {
            var navOrderUnderTest = new NavOrder();
            const string existingLicenseName = "ExistingLicense";
            var expectedError1 = ErrorGuids.LicenseKeyIsEmptyGuid;
            var expectedError2 = ErrorGuids.LicenseKeyAlreadyAssigned;
            navOrderUnderTest.ProductOrders.Add(new ProductOrder { ExpirationDate = DateTime.Now });
            navOrderUnderTest.ProductOrders.Add(new ProductOrder{ExpirationDate = DateTime.Now,LicenseKey =existingLicenseName});
            var existingLicenses = new List<string> {existingLicenseName};

            var query = navOrderUnderTest.ValidateOrderForNewLicense(existingLicenses);

            var actualFirstCondition = IsExpectedErrorGuidInQueryResults(query, expectedError1);
            var actualSecondCondition = IsExpectedErrorGuidInQueryResults(query, expectedError2);
            Assert.IsTrue(actualFirstCondition.Any());
            Assert.IsTrue(actualSecondCondition.Any());
        }
        public void ValidateOrdersFlagsMissingLicenseKeys()
        {
            var navOrderUnderTest = new NavOrder();
            var expected = ErrorGuids.LicenseKeyIsEmptyGuid;
            navOrderUnderTest.ProductOrders.Add(new ProductOrder{ExpirationDate = DateTime.Now});

            var existingLicenses = new List<string>();
            var query = navOrderUnderTest.ValidateOrderForNewLicense(existingLicenses);

            var actual = IsExpectedErrorGuidInQueryResults(query, expected);
            Assert.IsTrue(actual.Any());
        }