コード例 #1
0
 public void SetComment(ITypeTemplate template, TaskContext context)
 {
     template.Dispatcher.Invoke(() =>
     {
         var comment = RandomUtility.NextString();
         template.SetComment(context.Authentication, comment);
     });
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 public void SetComment()
 {
     template.SetComment(authentication, RandomUtility.NextString());
 }