public void IsRegistered_PositiveTest() { //Arrange Container.Register(_ => Guid.NewGuid()); //Act var result = Container.IsRegistered <Guid>(); //Assert Assert.IsTrue(result); }
public static bool IsRegistered <T>(this IDependencyContainer container, string key) { return(container.IsRegistered(typeof(T), key)); }
public static bool IsRegistered(Type typeToCheck) { return(resolver.IsRegistered(typeToCheck)); }