public void GetIndexWithFamilyTest()
        {
            var controller = new SpecialPopulationsController();

            using (ShimsContext.Create())
            {
                var result = controller.Index("4", null) as ViewResult;
                Assert.AreEqual("ServiceProviderList", result.ViewName);
            }
        }
        public void GetIndexTest()
        {
            var familyList = new List <FamilyEditor>
            {
                new FamilyEditor {
                    Id = 1, Name = "Family 1", Description = "this is a description"
                },
                new FamilyEditor {
                    Id = 1, Name = "Family 2", Description = "this is a description too"
                }
            };

            var controller = new SpecialPopulationsController();

            using (ShimsContext.Create())
            {
                ShimFamiliesLogic.AllInstances.GetFamilies = logic => familyList;
                var result      = controller.Index(null, null) as ViewResult;
                var resultModel = result.Model as List <FamilyEditor>;
                Assert.AreEqual(2, resultModel.Count);
            }
        }