Exemplo n.º 1
0
        public void CanNotInstantiateWithConcreteInterface()
        {
            var microwaveConfiguration = new MicrowaveConfiguration();

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

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

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