Exemple #1
0
        private static FakeAssignmentsSet CreateSampleData(int nrOfRecords)
        {
            var sampleData = new FakeAssignmentsSet();

            for (var i = 1; i <= nrOfRecords; i++)
            {
                sampleData.Add(new Assignment {
                    Id    = i,
                    Title = "title " + i,
                });
            }

            return(sampleData);
        }
        private static FakeAssignmentsSet CreateSampleData(int nrOfRecords)
        {
            var sampleData = new FakeAssignmentsSet();

            for (var i = 1; i <= nrOfRecords; i++)
                sampleData.Add(new Assignment{
                    Id = i,
                    Title = "title " + i,
                });

            return sampleData;
        }