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