Beispiel #1
0
        public void CanNotInstantiateWithConcreteInterface()
        {
            var microwaveConfiguration = new MicrowaveConfiguration();

            Assert.ThrowsException <ProvidedTypeIsNoEventFeedException>(() => microwaveConfiguration.WithFeedType(typeof
                                                                                                                  (IEventFeed <Entity>)));
        }
Beispiel #2
0
        public void CanInstantiateWithCorrectType()
        {
            var microwaveConfiguration = new MicrowaveConfiguration();

            microwaveConfiguration.WithFeedType(typeof(LocalEventFeed <>));
            Assert.AreEqual(typeof(LocalEventFeed <>), microwaveConfiguration.FeedType);
        }
Beispiel #3
0
        public void CanNotInstantiateWithWrongType()
        {
            var microwaveConfiguration = new MicrowaveConfiguration();

            Assert.ThrowsException <ProvidedTypeIsNoEventFeedException>(() => microwaveConfiguration.WithFeedType(typeof(Entity)));
        }