Пример #1
0
        public void AddSubscription_configures(NybusConfigurator sut, ISubscriptionBuilder subscriptionBuilder, Action <ISubscriptionBuilder> subscriptionDelegate)
        {
            sut.AddSubscription(subscriptionDelegate);

            sut.ConfigureBuilder(subscriptionBuilder);

            Mock.Get(subscriptionDelegate).Verify(p => p(subscriptionBuilder), Times.Once);
        }
Пример #2
0
 public void AddSubscription_requires_non_null_subscription_delegate(NybusConfigurator sut)
 {
     Assert.Throws <ArgumentNullException>(() => sut.AddSubscription(null));
 }