Ejemplo n.º 1
0
        public ActionResult Index()
        {
            AppViewModel _wrapper = new AppViewModel();

            ProviderQueries PQ = new ProviderQueries();

            _wrapper.providers = PQ.GetProviders();

            return(View(_wrapper));
        }
Ejemplo n.º 2
0
        public void LoadProviders()
        {
            List <Provider> _providers = new List <Provider>();

            Boolean         bResult        = true;
            string          sStatusMessage = "";
            ProviderQueries PQ             = new ProviderQueries();

            _providers = PQ.GetProviders();

            if (_providers.Count != 0)
            {
                bResult        = true;
                sStatusMessage = "Yes has providers";
            }
            else
            {
                bResult        = false;
                sStatusMessage = "No Providers";
            }

            Assert.IsTrue(bResult, sStatusMessage);
        }