public void SetComment(ITypeTemplate template, TaskContext context) { template.Dispatcher.Invoke(() => { var comment = RandomUtility.NextString(); template.SetComment(context.Authentication, comment); }); }
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 SetComment() { template.SetComment(authentication, RandomUtility.NextString()); }