Example #1
0
        public static TestModelAsListModel MakeTestModelAsList()
        {
            var model = new TestModelAsListModel
            {
                Id = ++_nextId
            };

            model.AddRange(new[] { TestModel.MakeTestModel(), TestModel.MakeTestModel(), TestModel.MakeTestModel() });
            return(model);
        }
Example #2
0
        public static TestModelAsListModel MakeTestModelAsListWithParentReference()
        {
            var model = new TestModelAsListModel
            {
                Id = ++_nextId
            };

            model.AddRange(new[]
                           { TestModel.MakeTestModel(model), TestModel.MakeTestModel(model), TestModel.MakeTestModel(model) });
            return(model);
        }