Esempio n. 1
0
        public void IsRegistered_PositiveTest()
        {
            //Arrange
            Container.Register(_ => Guid.NewGuid());

            //Act
            var result = Container.IsRegistered <Guid>();

            //Assert
            Assert.IsTrue(result);
        }
Esempio n. 2
0
 public static bool IsRegistered <T>(this IDependencyContainer container, string key)
 {
     return(container.IsRegistered(typeof(T), key));
 }
Esempio n. 3
0
 public static bool IsRegistered(Type typeToCheck)
 {
     return(resolver.IsRegistered(typeToCheck));
 }