﻿using ProjectCDA.Model;
using ProjectCDA.Model.Constants;
using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace ProjectCDA.DAL
{
    public class DataService : IDataService
    {
        public IEnumerable<FacingPages> GetData()
        {
            ObservableCollection<FacingPages> gridData = new ObservableCollection<FacingPages>();

            FacingPages pages = new FacingPages();
            pages.ID = 0;
            pages.Type = FacingPagesTypes.DEFAULT;
            gridData.Add(pages);

            pages = new FacingPages();
            pages.ID = 1;
            pages.Type = FacingPagesTypes.NO_HEADER;
            gridData.Add(pages);

            pages = new FacingPages();
            pages.ID = 2;
            pages.Type = FacingPagesTypes.SINGLE_PAGE;
            gridData.Add(pages);

            for (int i = 3; i < 65; i++)
            {
                pages = new FacingPages();
                pages.ID = i;
                pages.Type = FacingPagesTypes.DEFAULT;
                gridData.Add(pages);
            }

            return gridData;
        }
    }
}

﻿using ProjectCDA.Model;
using ProjectCDA.Model.Constants;
using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace ProjectCDA.DAL
{
    public class DataService : IDataService
    {
        public IEnumerable<FacingPages> GetData()
        {
            return GetMockData();
        }

        public IEnumerable<FacingPages> GetMockData()
        {
            ObservableCollection<FacingPages> gridData = new ObservableCollection<FacingPages>();

            FacingPages pages = new FacingPages();
            pages.ID = 0;
            pages.Type = FacingPagesTypes.DEFAULT;
            gridData.Add(pages);

            pages = new FacingPages();
            pages.ID = 1;
            pages.Type = FacingPagesTypes.NO_HEADER;
            gridData.Add(pages);

            pages = new FacingPages();
            pages.ID = 2;
            pages.Type = FacingPagesTypes.SINGLE_PAGE;
            gridData.Add(pages);

            for (int i = 3; i < 65; i++)
            {
                pages = new FacingPages();
                pages.ID = i;
                pages.Type = FacingPagesTypes.DEFAULT;
                gridData.Add(pages);
            }

            return gridData;
        }
    }
}

Move generating mock data to separate function.
Move generating mock data to separate function.
