Example #1
0
        public Login()
        {
            InitializeComponent();

            this._condition = new Member();
            this.txtLoginID.DataBindings.Add("Text", this._condition, "LoginID");
            this.txtLoginPW.DataBindings.Add("Text", this._condition, "LoginPassword");
        }
Example #2
0
        public EntryMember(Member member)
        {
            InitializeComponent();

            this._member = member;

            //基底クラスで実装したコールバック関数でイベントフック
            this.Load += base.Form_Load;
            this.btnSave.Click += base.RegisterButton_Click;
        }
Example #3
0
 public void TestLoginAuthorication(bool expected, Member condition)
 {
     var data = Member.LoginAuthorication(condition) != null ? true : false;
     Assert.AreEqual(expected, data);
 }
Example #4
0
        public void TestSave_WhenCommited()
        {
            var model = new Member()
            {
                Name = "Hoge",
                LoginID = "hoge",
                LoginPassword = "******",
                EnableFlag = true
            };

            bool result = model.Save();
            Assert.IsTrue(result);
        }
Example #5
0
 /// <summary>
 /// ログイン認証
 /// </summary>
 /// <param name="condition">ログイン情報</param>
 /// <returns>成功:メンバー情報 / 失敗:null</returns>
 public static Member LoginAuthorication(Member condition)
 {
     return ModelBase._db.ReadOne<Member, Member>("Exec LoginAuthorication @LoginID, @LoginPassword", condition);
 }