Ejemplo n.º 1
0
        public void should_leverage_the_resolver_to_retrieve_all_the_implementations()
        {
            var intsToReturn = new List <int>();

            using (mockery.Record()) {
                Expect
                .Call(registry.AllImplementationsOf <int>())
                .Return(intsToReturn)
                .Repeat
                .AtLeastOnce();
            }

            using (mockery.Playback()) {
                CreateSUT().All();
            }
        }
Ejemplo n.º 2
0
 public IEnumerable <T> All()
 {
     return(registry.AllImplementationsOf <T>());
 }