public SubscriptionToBe ExpectSubscriptions(IEnumerable <Subscription> subscriptions) { Ensure.NotNull(subscriptions, nameof(subscriptions)); var actual = subscriptions as IList <Subscription> ?? subscriptions.ToList(); var expectation = new SubscriptionExpectation(actual); _expectations.Add(expectation); return(new SubscriptionToBe(expectation)); }
internal SubscriptionToBe(SubscriptionExpectation expectation) { _expectation = expectation; }