public async Task <IHttpActionResult> GetPerson(int id) { var repository = new CachedPersonRepository(new PersonRepository()); var person = await repository.GetAsync(id); if (person == null) { return(NotFound()); } return(Ok(person)); }
public void Setup() { repo = new CachedPersonRepository(new PersonRepository()); }