public void add_should_call_add_on_repository()
 {
     var heroToAdd = new HeroInput{Name="foo"};
     _application.Add(heroToAdd);
     _heroRepo.Verify(x=>x.Add(It.Is<Hero>(h=>h.Name == heroToAdd.Name)),Times.AtMostOnce);
 }
 public void Add(HeroInput hero)
 {
     _heroRepository.Add(new Hero{Name= hero.Name});
 }