public void get_uses_the_family_to_return()
        {
            var widget = new AWidget();

            familyMock.Build(instance).Returns(widget);

            instanceRef.Get <IWidget>().ShouldBeTheSameAs(widget);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns the real object represented by this Instance
 /// resolved by the underlying Container
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <returns></returns>
 public T Get <T>() where T : class
 {
     return(_family.Build(_instance) as T);
 }