public static GuidIdEntity GenerateForTest(this GuidIdEntity entity) { RandomizeTestBase <GuidIdEntity, Guid>(entity); if (entity.CoreEntity == null) { entity.CoreEntity = new CoreEntity().SaveForTest(); } return(entity); }
public static GuidIdEntity SaveForTest(this GuidIdEntity entity) { var created = entity.GenerateForTest(); return(SaveEntity <GuidIdEntity, Guid>(created)); }