예제 #1
0
        public async Task GetPartPlaysAsync()
        {
            var service = new PartService(DataSource);
            var parts   = await DataSource.From("Sources.Part").ToInt32List("PartKey").ExecuteAsync();

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

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