public void StatusIsSuccess(JSuccessWithDataResponse<int> response)
 {
     // Exercise system and verify outcome
     response.Status.Should().Be(JSendStatus.Success);
 }
Exemplo n.º 2
0
 public void GetDataOrDefault_WithDefaultValue_ReturnsData_WhenDataIsProvided(JSuccessWithDataResponse <Model> response)
 {
     // Exercise system and verify outcome
     response.GetDataOrDefault(null).Should().Be(response.Data);
 }
 public void HasData(JSuccessWithDataResponse<int> response)
 {
     // Exercise system and verify outcome
     response.HasData.Should().BeTrue();
 }
 public void ErrorIsNull(JSuccessWithDataResponse<int> response)
 {
     // Exercise system and verify outcome
     response.Error.Should().BeNull();
 }
Exemplo n.º 5
0
 public void StatusIsSuccess(JSuccessWithDataResponse <int> response)
 {
     // Exercise system and verify outcome
     response.Status.Should().Be(JSendStatus.Success);
 }
Exemplo n.º 6
0
 public void HasData(JSuccessWithDataResponse <int> response)
 {
     // Exercise system and verify outcome
     response.HasData.Should().BeTrue();
 }
Exemplo n.º 7
0
 public void ErrorIsNull(JSuccessWithDataResponse <int> response)
 {
     // Exercise system and verify outcome
     response.Error.Should().BeNull();
 }