public void ScanningWorks() { // setup _context.DeclareAnnotatedComponents(); // when _context.Resolve(); var house = _context.Get <House>(); var door = _context.Get <Door>(); // then Assert.NotNull(house); Assert.NotNull(door); Assert.AreSame(door, house.Door); }