Пример #1
0
        public async Task QueryOffersV2Async_WhenQueryingOffersV2_ThenAllOffersV2GetReturned()
        {
            // Arrange
            var collections = await _cosmonautClient.QueryCollectionsAsync(_databaseId);

            // Act
            var offersV2 = await _cosmonautClient.QueryOffersV2Async();

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