Esempio n. 1
0
        public void TestGetNameByPersonnelId()
        {
            var personnel = Guid.NewGuid();
            var expect    = "tester";

            //模拟返回结果
            _stubIPersonnelSao.GetNameGuid = personnelId => "tester";
            var result = _personnelManager.GetName(personnel);

            Assert.AreEqual(expect, result);
        }
Esempio n. 2
0
 protected string GetPersonName(string personId)
 {
     return(_personnelManager.GetName(new Guid(personId)));
 }