public ChildClass CreateChildClass(ParentClass parentClass)
 {
     return new ChildClass()
     {
         Id = GetRandomNumber(),
         Description = GetRandomString(),
         IsModified = false,
         //ParentClass = parentClass,
         ParentClassId = parentClass.Id
     };
 }
        public ParentClass CreateParentClass()
        {
            ParentClass parentClass = new ParentClass
            {
                Id = GetRandomNumber(),
                Date = DateTime.Now,
                Title = GetRandomString(),
                UserId = GetGuid()
            };

            for (int i = 0; i < 3; i++)
            {
                parentClass.ChildClasses.Add(_childClassFactory.CreateChildClass(parentClass));
            }

            return parentClass;
        }