public void Client_Heroes_WithDesign() { //Use a proxy to cache heroes list // Arrange var heroesService = new HeroesDependency(); var heroesProxy = new HeroesProxy(heroesService); //Act var result = heroesProxy.GetHeroes(); //Assert Assert.Equal(3, result.Count); }
public void Client_Heroes_WithoutDesign() { //Arrange var heroesService = new HeroesDependency(); //Act //We use directly the tiers service, we are exposed to latency. var result = heroesService.GetHeroes(); //Assert Assert.Equal(3, result.Count); //contains }