Exemple #1
0
        public void SetUp()
        {
            //var kernel = new Kernel(null,null,null,null);
            //var logger = new Logger(kernel,"",false,null);

            //参加者
            var  dat     = new Dat(new[] { CtrlType.TextBox, CtrlType.TextBox, CtrlType.CheckBox, CtrlType.CheckBox, CtrlType.CheckBox, CtrlType.TextBox });
            bool manager = false;

            dat.Add(true, string.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5}", "USER1", "*****@*****.**", manager, true, true, ""));     //読者・投稿
            dat.Add(true, string.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5}", "USER2", "*****@*****.**", manager, true, false, ""));    //読者  ×
            dat.Add(true, string.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5}", "USER3", "*****@*****.**", manager, false, true, ""));    //×  投稿
            manager = true;                                                                                                          //管理者
            dat.Add(true, string.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5}", "ADMIN", "*****@*****.**", manager, false, true, "123")); //×  投稿

            _mlUserList = new MlUserList(dat);
        }
Exemple #2
0
        MlUserList CreateMlUsers2()
        {
            var kernel = new Kernel(null, null, null, null);
            var logger = new Logger(kernel, "", false, null);

            //参加者
            MemberList = new Dat();
            bool manager = false;

            MemberList.Add(true, string.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5}", "USER1", "*****@*****.**", manager, true, true, ""));       //読者・投稿
            MemberList.Add(true, string.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5}", "USER2", "*****@*****.**", manager, true, false, ""));      //読者  ×
            MemberList.Add(false, string.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5}", "USER6", "*****@*****.**", manager, false, true, ""));     //×  投稿 (Disable)
            MemberList.Add(true, string.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5}", "USER3", "*****@*****.**", manager, false, true, ""));      //×  投稿
            manager = true;                                                                                                                   //管理者
            MemberList.Add(true, string.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5}", "ADMIN", "*****@*****.**", manager, false, true, "123"));   //×  投稿
            MemberList.Add(true, string.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5}", "ADMIN2", "*****@*****.**", manager, true, true, "456"));  //読者  投稿
            MemberList.Add(false, string.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5}", "ADMIN3", "*****@*****.**", manager, true, true, "789")); //読者  投稿 (Disable)

            var mlUserList = new MlUserList(MemberList);

            return(mlUserList);
        }