public async Task Recipes_can_be_enumerated() { await using Composer services = new(); var sut = services.Resolve <Gw2Client>(); await foreach (var actual in sut.Crafting.GetRecipes()) { RecipeFacts.Validate(actual); } }
public void Recipes_can_be_created_from_json() => Assert.All( fixture.Recipes, json => { using var document = JsonDocument.Parse(json); var actual = document.RootElement.GetRecipe(MissingMemberBehavior.Error); RecipeFacts.Validate(actual); } );