コード例 #1
0
        public async Task ThenThePayeSchemeIsReturned()
        {
            // Act
            var response = await _apiClient.GetResource <PayeSchemeViewModel>(_uri);

            // Assert
            Assert.IsNotNull(response);
            Assert.IsAssignableFrom <PayeSchemeViewModel>(response);
            response.Should().NotBeNull();
            response.ShouldBeEquivalentTo(_expectedPayeScheme);
        }
        public async Task ThenTheLegalEntitiesAreReturned()
        {
            // Act
            var response = await _apiClient.GetResource <ResourceList>(_uri);

            // Assert
            Assert.IsNotNull(response);
            Assert.IsAssignableFrom <ResourceList>(response);
            response.Should().NotBeNull();
            response.ShouldBeEquivalentTo(_legalEntities);
        }
コード例 #3
0
        public async Task ThenTheAccountDetailsAreReturned()
        {
            // Act
            var response = await _apiClient.GetResource <ResourceList>(_uri);

            // Assert
            Assert.IsNotNull(response);
            Assert.IsAssignableFrom <ResourceList>(response);
            response.Should().NotBeNull();
            response.ShouldBeEquivalentTo(_payeSchemes);
        }
        public async Task ThenTheAccountDetailsAreReturned()
        {
            // Act
            var response = await _apiClient.GetResource <AccountDetailViewModel>(_uri);

            // Assert
            Assert.IsNotNull(response);
            Assert.IsAssignableFrom <AccountDetailViewModel>(response);
            response.Should().NotBeNull();
            response.ShouldBeEquivalentTo(_expectedAccount);
        }