Example #1
0
        public async Task InitializationModel()
        {
            List <Activity> activityData = await _databaseSystem.InitializationActivityData();

            _activityHandler = new ActivityHandler(activityData);
            List <Member> memberData = await _databaseSystem.InitializationMemberData();

            _memberHandler = new MemberHandler(memberData);
        }
Example #2
0
        public async Task InitializationMemberDataTest()
        {
            DatabaseSystem databaseSystem = new DatabaseSystem();
            Member         member         = new Member();

            member.MemberId   = "unitTest4";
            member.MemberName = "zxczxc";
            member.Password   = "******";
            member.Phone      = "0326598741";
            member.Birthday   = "10/10/1659";
            member.Sexuality  = "女";

            await databaseSystem.UpdateMemberInfo(member);

            List <Member> memberList = await databaseSystem.InitializationMemberData();

            await databaseSystem.Delete("unitTest4", "Member");

            Assert.IsNotNull(memberList.Find(x => x.MemberId == "unitTest4"));
        }