public void GetFrenchPizza() { var result = _getPizzaService.GetAll("fr-FR"); Assert.NotNull(result); Assert.NotEmpty(result); foreach (var pizzaResponse in result) { Assert.Equal("fr-FR", pizzaResponse.LanguageCode); _output.WriteLine(pizzaResponse.ToString()); } }
public PizzaModule() { _repository = new Repository.MongoDb.MongoRepository <Pizza>("mongodb://localhost:27017", "PizaaStore"); _pizzasWithLanguageConditions = new PizzasWithLanguageConditions(); _getPizzaService = new GetPizzaService(_repository, _pizzasWithLanguageConditions); Get("/pizza/{id}/{language}", args => _getPizzaService.GetById(args.id, args.language)); Get("/pizzaList/{language}", args => _getPizzaService.GetAll(args.language)); }