Exemplo n.º 1
0
        public async Task GetPartWeaponsAsync()
        {
            var service = new PartService(DataSource);
            var parts   = await DataSource.From("Sources.Part").ToInt32List("PartKey").ExecuteAsync();

            foreach (var partKey in parts)
            {
                var rows = await service.GetPartWeaponsAsync(partKey, null);

                foreach (var row in rows)
                {
                    Assert.IsFalse(string.IsNullOrWhiteSpace(row.PrimaryWeaponName), "PrimaryWeaponName shouldn't be null");
                }
            }
        }