public void CanNotInstantiateWithConcreteInterface() { var microwaveConfiguration = new MicrowaveConfiguration(); Assert.ThrowsException <ProvidedTypeIsNoEventFeedException>(() => microwaveConfiguration.WithFeedType(typeof (IEventFeed <Entity>))); }
public void CanInstantiateWithCorrectType() { var microwaveConfiguration = new MicrowaveConfiguration(); microwaveConfiguration.WithFeedType(typeof(LocalEventFeed <>)); Assert.AreEqual(typeof(LocalEventFeed <>), microwaveConfiguration.FeedType); }
public void CanNotInstantiateWithWrongType() { var microwaveConfiguration = new MicrowaveConfiguration(); Assert.ThrowsException <ProvidedTypeIsNoEventFeedException>(() => microwaveConfiguration.WithFeedType(typeof(Entity))); }