public void TestGetData()
        {
            var categoryArea = CategoryArea.New(CategoryTypeIds.DeprivationDecileCountyAndUA2010, 1);
            var grouping = new Grouping();
            var timePeriod = new TimePeriod();

            var reader = new Mock<GroupDataReader>(MockBehavior.Strict);
            reader.Setup(x => x.GetCoreDataForCategoryArea(grouping, timePeriod, categoryArea))
                .Returns(new CoreDataSet());

            var provider = new CategoryAreaCoreDataSetProvider(categoryArea, reader.Object);

            Assert.IsNotNull(provider.GetData(grouping, timePeriod, null));

            reader.VerifyAll();
        }
 public void TestConstructor()
 {
     var categoryArea = CategoryArea.New(CategoryTypeIds.DeprivationDecileCountyAndUA2010, 1);
     var provider = new CategoryAreaCoreDataSetProvider(categoryArea, ReaderFactory.GetGroupDataReader());
     Assert.IsNotNull(provider);
 }