public void AddTest()
 {
     BillingProviderCollection target = new BillingProviderCollection(); // TODO: Initialize to an appropriate value
     ProviderBase provider = null; // TODO: Initialize to an appropriate value
     target.Add(provider);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
 public void ItemTest()
 {
     BillingProviderCollection target = new BillingProviderCollection(); // TODO: Initialize to an appropriate value
     string name = string.Empty; // TODO: Initialize to an appropriate value
     BillingProvider actual;
     actual = target[name];
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Ejemplo n.º 3
0
        protected static void LoadProviders()
        {
            // Avoid claiming lock if providers are already loaded
            if (_provider == null)
            {
                lock (_lock)
                {
                    // Do this again to make sure _provider is still null
                    if (_provider == null)
                    {
                        BillingControllerSection section = (BillingControllerSection)
                           WebConfigurationManager.GetSection
                           ("BillingController");

                        //get connection string
                        _connectionString = ConfigurationManager.ConnectionStrings[section.ConnectionStringName].ConnectionString;

                        // Load registered providers and point _provider
                        // to the default provider
                        _providers = new BillingProviderCollection();
                        ProvidersHelper.InstantiateProviders
                            (section.Providers, _providers,
                            typeof(BillingProvider));
                        _provider = _providers[section.DefaultProvider];

                        if (_provider == null)
                            throw new ProviderException
                                ("Unable to load default SubscriptionProvider");
                    }
                }
            }
        }
 public void BillingProviderCollectionConstructorTest()
 {
     BillingProviderCollection target = new BillingProviderCollection();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }