public void ManagerUserUpdateSuccessThree()
        {
            IManagerUserStorage managerUserStorage = new ManagerUserStorage();

            ManagerUser myManagerUser = CreateManagerUserForTest(
                "用户5",
                "123456",
                "系统管理员");

            ManagerUser createdManagerUser =
                managerUserStorage.CreateManagerUser(myManagerUser);

            Assert.AreNotEqual(
                0,
                createdManagerUser.UserID,
                string.Format("Could not create ManagerUser:{0}",
                              createdManagerUser.UserID));

            myManagerUser.UserSort = "系统操作员";

            managerUserStorage.UpdateManagerUser(myManagerUser);

            ManagerUser updatedManagerUser = managerUserStorage.ReadManagerUser(
                createdManagerUser.UserID);

            AssertManagerUserItemEqual(myManagerUser, updatedManagerUser);
        }
        public void ManagerUserReadFailureUserIdArgumentException()
        {
            IManagerUserStorage managerUserStorage = new ManagerUserStorage();

            //ManagerUser myManagerUser = CreateManagerUserForTest(
            //    "用户5",
            //    "123456",
            //    "系统管理员");

            //ManagerUser createdManagerUser =
            //managerUserStorage.CreateManagerUser(myManagerUser);
            managerUserStorage.ReadManagerUser(-1);
        }
        public void ManagerUserReadSuccess()
        {
            IManagerUserStorage managerUserStorage = new ManagerUserStorage();

            ManagerUser myManagerUser = CreateManagerUserForTest(
                "用户4",
                "123456",
                "系统管理员");

            ManagerUser createdManagerUser =
                managerUserStorage.CreateManagerUser(myManagerUser);

            Assert.AreNotEqual(
                0,
                createdManagerUser.UserID,
                string.Format("Could not create ManagerUser:{0}",
                              createdManagerUser.UserID));

            ManagerUser readedManagerUser = managerUserStorage.ReadManagerUser(
                createdManagerUser.UserID);

            AssertManagerUserItemEqual(createdManagerUser, readedManagerUser);
        }