ListAll() 공개 메소드

public ListAll ( ) : IEnumerable
리턴 IEnumerable
 public void TestListAll()
 {
     _mockStore1.Setup(x => x.ListAll()).Returns(new[] { _digest1 });
     _mockStore2.Setup(x => x.ListAll()).Returns(new[] { _digest2 });
     CollectionAssert.AreEquivalent(new[] { _digest1, _digest2 }, _testStore.ListAll(), "Should combine results from all stores");
 }
예제 #2
0
 public void TestListAll()
 {
     _mockStore1.Setup(x => x.ListAll()).Returns(new[] { _digest1 });
     _mockStore2.Setup(x => x.ListAll()).Returns(new[] { _digest2 });
     _testStore.ListAll().Should().BeEquivalentTo(new[] { _digest1, _digest2 }, because: "Should combine results from all stores");
 }