private static void InitOneDecileWorksheets()
        {
            var category = new Category
            {
                Id = 5,
                CategoryTypeId = CategoryTypeIds.DeprivationDecileCountyAndUA2010,
                Name = "",
                ShortName = ""
            };
            var categoryArea = CategoryArea.New(category);

            var parentArea = new ParentArea(categoryArea.Code, AreaTypeIds.CountyAndUnitaryAuthority);
            IList<ParentArea> parentAreas = new List<ParentArea>();
            parentAreas.Add(parentArea);

            var map = new ComparatorMapBuilder(parentAreas).ComparatorMap;
            var profileId = ProfileIds.Phof;
            var profile = ReaderFactory.GetProfileReader().GetProfile(profileId);
            var parentAreaTypeId = CategoryAreaType.GetAreaTypeIdFromCategoryTypeId(
                CategoryTypeIds.DeprivationDecileCountyAndUA2010);
            workbook = new ProfileDataBuilder(map, profile, new List<int> { profileId },
                parentAreas, AreaTypeFactory.New(ReaderFactory.GetAreasReader(), parentAreaTypeId)).BuildWorkbook();
        }
 public void SetNames(Category category)
 {
     Name = category.Name;
     ShortName = category.ShortName;
 }
 public static CategoryArea New(Category category)
 {
     var categoryArea = New(category.CategoryTypeId, category.Id);
     categoryArea.Name = category.Name;
     categoryArea.ShortName = category.ShortName;
     return categoryArea;
 }