Provides easier processing of response strings from a S&F data source.
Наследование: ISfResponse
Пример #1
0
        public void ResultIsNullAfterCreatingInstanceWithImplementedErrorCode()
        {
            // Arrange / Act
            var sut = new SfResponse(TestConstants.ExistingError, TestConstants.ValidServerUri);

            // Assert
            sut.Response.Should().BeNull();
        }
Пример #2
0
        public void ErrorsListCountIsGreaterZeroAfterCreatingErrorInstance()
        {
            // Arrange / Act
            var sut = new SfResponse(TestConstants.ExistingError, TestConstants.ValidServerUri);

            // Assert
            sut.Errors.Should().HaveCount(c => c > 0);
        }
Пример #3
0
        public void ErrorsListIsInitializedAfterCreatingInstance()
        {
            // Arrange / Act
            var sut = new SfResponse(TestConstants.ExistingSuccess, TestConstants.ValidServerUri);

            // Assert
            sut.Errors.Should().NotBeNull();
        }