Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 internal SubscriptionToBe(SubscriptionExpectation expectation)
 {
     _expectation = expectation;
 }