public void TestGetNameByPersonnelId() { var personnel = Guid.NewGuid(); var expect = "tester"; //模拟返回结果 _stubIPersonnelSao.GetNameGuid = personnelId => "tester"; var result = _personnelManager.GetName(personnel); Assert.AreEqual(expect, result); }
protected string GetPersonName(string personId) { return(_personnelManager.GetName(new Guid(personId))); }