Пример #1
0
        public static GuidIdEntity GenerateForTest(this GuidIdEntity entity)
        {
            RandomizeTestBase <GuidIdEntity, Guid>(entity);

            if (entity.CoreEntity == null)
            {
                entity.CoreEntity = new CoreEntity().SaveForTest();
            }

            return(entity);
        }
Пример #2
0
        public static GuidIdEntity SaveForTest(this GuidIdEntity entity)
        {
            var created = entity.GenerateForTest();

            return(SaveEntity <GuidIdEntity, Guid>(created));
        }