Skip to content

Commit

Permalink
Merge pull request #21 from MabOneSdk/panbha11
Browse files Browse the repository at this point in the history
testcase
  • Loading branch information
panbha committed Jun 15, 2015
2 parents 30c2258 + 123cd66 commit 8c88f3d
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ public void ListRecoveryPointTest()

var response = client.RecoveryPoint.List(GetCustomRequestHeaders(), containerName, dataSourceType, dataSourceId);

Assert.True(response.RecoveryPoints.ResultCount > 0, "Recovery Points Result count can't be less than 1");

foreach (var ppo in response.RecoveryPoints.Objects)
foreach (var rpo in response.RecoveryPoints.Objects)
{
Assert.True(!string.IsNullOrEmpty(ppo.InstanceId), "RecoveryPointId can't be null or empty");
Assert.True((ppo.RecoveryPointTime != null), "RecoveryPointTime can't be null or empty");
Assert.True(!string.IsNullOrEmpty(ppo.RecoveryPointType), "RecoveryPointType can't be null or empty");
Assert.True(!string.IsNullOrEmpty(rpo.InstanceId), "RecoveryPointId can't be null or empty");
Assert.True((rpo.RecoveryPointTime != null), "RecoveryPointTime can't be null or empty");
Assert.True(!string.IsNullOrEmpty(rpo.RecoveryPointType), "RecoveryPointType can't be null or empty");
}

Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Expand Down

0 comments on commit 8c88f3d

Please sign in to comment.