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 crimeCategories = new List <Category>
            {
                new Category {
                    Name = "Category 1", Description = "Description", Crime = true
                },
                new Category {
                    Name = "Category 1", Description = "Description", Crime = true
                }
            };

            var controller = new PersonalResourcesController();

            using (ShimsContext.Create())
            {
                ShimFamiliesLogic.AllInstances.GetFamilies     = logic => familyList;
                ShimDataLogics.AllInstances.GetCrimeCategories = logics => crimeCategories;
                var result      = controller.Index(null, null) as ViewResult;
                var resultModel = result.Model as PersonalResourcesViewModel;
                Assert.AreEqual(2, resultModel.Crime.Count);
                Assert.AreEqual(2, resultModel.General.Count);
            }
        }
        public void GetIndexWithCategoryTest()
        {
            var controller = new PersonalResourcesController();

            using (ShimsContext.Create())
            {
                var result = controller.Index(null, "2") as ViewResult;
                Assert.AreEqual("ServiceProviderList", result.ViewName);
            }
        }