protected void SetUp() { ContactsEndpoint = MockRepository.GenerateStub <IContactsEndpoint>(); var contacts = new List <Contact>() { ContactMaker("Minch Yoda", "Dagobah"), ContactMaker("Luke Skywalker", "Tatooine"), ContactMaker("Obi Wan Kenobi", "Tatooine"), ContactMaker("Darth Vader", "The Death Star"), }; ContactsEndpoint.Stub(a => a.Find()).Return(contacts); }
protected void SetUp() { ContactsEndpoint = MockRepository.GenerateStub<IContactsEndpoint>(); var contacts = new List<Contact>() { ContactMaker("Minch Yoda","Dagobah"), ContactMaker("Luke Skywalker","Tatooine"), ContactMaker("Obi Wan Kenobi","Tatooine"), ContactMaker("Darth Vader","The Death Star"), }; ContactsEndpoint.Stub(a => a.FindAsync()).Return(Task.FromResult<IEnumerable<Contact>>(contacts)); }