public void SetTypeName(ITypeTemplate template, TaskContext context) { template.Dispatcher.Invoke(() => { var tableName = RandomUtility.NextIdentifier(); template.SetTypeName(context.Authentication, tableName); }); }
public static void InitializeRandom(this ITypeTemplate template, Authentication authentication) { var typeName = RandomUtility.NextIdentifier(); template.SetTypeName(authentication, typeName); if (RandomUtility.Within(50) == true) { template.SetIsFlag(authentication, RandomUtility.NextBoolean()); } if (RandomUtility.Within(50) == true) { template.SetComment(authentication, RandomUtility.NextString()); } template.AddRandomMembers(authentication); }
public void SetTypeName() { template.SetTypeName(authentication, RandomUtility.NextIdentifier()); }