有什么东西我可以用通配符(任何大于 0 的数字)替换“1”,这样传入的任何东西总是返回相同的东西等?
[TestMethod]
public void GameManagersEventsIndexReturnedWhenUserHasNoLocations()
{
// Arrange
List<CustomerLocation> locations = new List<CustomerLocation>();
locations.Add(new CustomerLocation() { Active = true, Name = "Ted" });
customerLocationDataProvider.Setup(x => x.GetAllForUserId(1)).Returns(locations);
customerLocationDataProvider.Setup(x => x.GetAllForUserId(1).Count).Returns(0);