public void CanBuildupObjectWithExplicitInterfaceUsingNongenericMethod() { // Setup Container.RegisterType <ILogger, MockLogger>(); // Act var o = new ObjectWithExplicitInterface(); Container.BuildUp(typeof(ISomeCommonProperties), o); // Verify o.ValidateInterface(); }
public void CanBuildupObjectWithExplicitInterface() { // Setup Container.RegisterType <ILogger, MockLogger>(); // Act var o = new ObjectWithExplicitInterface(); Container.BuildUp <ISomeCommonProperties>(o); // Verify o.ValidateInterface(); }