public void SetSalesOrderCashTest([Values("114042236511-001")] string salesorderno) { //1.迷你银测试OK _controller.Request.Method = HttpMethod.Put; var userProfile = new UserProfile { StoreIds = new[] { 21, 20 }, Id = 9999 }; var restult = _controller.SetSalesOrderCash(salesorderno, new SalesOrderCashRequest() { CashNo = "WORK-HARD-TEST1111" }, userProfile); var actual = restult as OkResult; Assert.IsNotNull(actual); }