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

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

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

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

            // Assert
            AssertValidData(masterData);
        }