private void AssertContainsAllProvidersExceptUndefined(DbConnectionViewModel.ProviderList list)
        {
            var enumValues = System.Enum.GetValues(typeof(ProviderType));

            foreach (ProviderType e in enumValues)
            {
                if (e == ProviderType.Undefined)
                {
                    continue;
                }

                var isContained = false;
                foreach (var item in list)
                {
                    var itemProvider = item.ID;
                    if (itemProvider == e)
                    {
                        isContained = true;
                        break;
                    }
                }

                Assert.IsTrue(isContained, "The provider list does not contain " + e.ToString());
            }
        }
        private void AssertContainsNotUndefinedProvider(DbConnectionViewModel.ProviderList list)
        {
            var enumValues = System.Enum.GetValues(typeof(ProviderType));

            foreach (var item in list)
            {
                var itemProvider = item.ID;
                if (itemProvider == ProviderType.Undefined)
                {
                    Assert.Fail("The list is not supposed to contain the undefined provider");
                }
            }
        }