Ejemplo n.º 1
0
        public void CanBuildupObjectWithExplicitInterfaceUsingNongenericMethod()
        {
            // Setup
            Container.RegisterType <ILogger, MockLogger>();

            // Act
            var o = new ObjectWithExplicitInterface();

            Container.BuildUp(typeof(ISomeCommonProperties), o);

            // Verify
            o.ValidateInterface();
        }
Ejemplo n.º 2
0
        public void CanBuildupObjectWithExplicitInterface()
        {
            // Setup
            Container.RegisterType <ILogger, MockLogger>();

            // Act
            var o = new ObjectWithExplicitInterface();

            Container.BuildUp <ISomeCommonProperties>(o);

            // Verify
            o.ValidateInterface();
        }