Exemplo n.º 1
0
        public async Task SystemTextJsonClient_RecordedResponse_ReturnsValidMasterData()
        {
            // Arrange
            var client = BankMasterClientFactory.CreateSystemTextJsonClient(() => _httpMessageHandler);

            // Act
            var masterData = await client.GetMasterDataAsync();

            // Assert
            AssertValidData(masterData);
        }
Exemplo n.º 2
0
        public async Task SystemTextJsonClient_LiveApi_ReturnsValidMasterData()
        {
            // Arrange
            var client = BankMasterClientFactory.CreateSystemTextJsonClient();

            // Act
            var masterData = await client.GetMasterDataAsync();

            // Assert
            AssertValidData(masterData);
        }