Exemplo n.º 1
0
        public void Aspects_ShouldNotBeAppliedAgainstAbstractServices()
        {
            Container.Abstract <IMyService>();

            Assert.That(Container.Get <IMyService>().Factory, Is.Null);
        }
Exemplo n.º 2
0
 public void Container_Abstract_ShouldBeNullChecked()
 {
     Assert.Throws <ArgumentNullException>(() => IServiceContainerBasicExtensions.Abstract(null, typeof(IDisposable)));
     Assert.Throws <ArgumentNullException>(() => Container.Abstract(null));
 }