常用方法
常用方法
常用方法
常用方法
public void TestGetAuthorisation() { //arrange mockRepo.Setup(repo => repo.GetClientCredentials("123", "456")).Returns(ExpectedCredentials()); //act var result = controller.GetClientCredentials("123", "456"); //assert Assert.AreEqual(ExpectedCredentials(), result); }