FeedHelperCreateMockFeedManager Method (ListMock`1IFeed, ListMock`1IListener, Boolean, Int32) |
Creates a mock
IFeedManager singleton with a functioning Feeds property and methods, and populates the
IFeed
and
IListener lists with mocks.
Namespace: Test.FrameworkAssembly: Test.Framework (in Test.Framework.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static Mock<IFeedManager> CreateMockFeedManager(
List<Mock<IFeed>> feeds,
List<Mock<IListener>> listeners,
bool useVisibleFeeds,
params int[] feedIds
)
Public Shared Function CreateMockFeedManager (
feeds As List(Of Mock(Of IFeed)),
listeners As List(Of Mock(Of IListener)),
useVisibleFeeds As Boolean,
ParamArray feedIds As Integer()
) As Mock(Of IFeedManager)
public:
static Mock<IFeedManager^>^ CreateMockFeedManager(
List<Mock<IFeed^>^>^ feeds,
List<Mock<IListener^>^>^ listeners,
bool useVisibleFeeds,
... array<int>^ feedIds
)
static member CreateMockFeedManager :
feeds : List<Mock<IFeed>> *
listeners : List<Mock<IListener>> *
useVisibleFeeds : bool *
feedIds : int[] -> Mock<IFeedManager>
Parameters
- feeds
- Type: System.Collections.GenericListMockIFeed
- listeners
- Type: System.Collections.GenericListMockIListener
- useVisibleFeeds
- Type: SystemBoolean
- feedIds
- Type: SystemInt32
Return Value
Type:
MockIFeedManagerSee Also