コード例 #1
0
        public async Task QueryOffersAsync_WhenQueryingOffers_ThenAllOffersGetReturned()
        {
            // Arrange
            var collections = await _cosmonautClient.QueryCollectionsAsync(_databaseId);

            // Act
            var offers = await _cosmonautClient.QueryOffersAsync();

            // Assert
            collections.ToList().ForEach(collection =>
            {
                offers.Select(x => x.ResourceLink).Contains(collection.SelfLink).Should().BeTrue();
            });
        }