public override void ExecuteCmdlet() { GetAccountResult response = null; response = CallClient(() => Client.Account.Get(), Client.Account); if (response != null) { Workspace workspace = new Workspace(response); WriteObject(workspace); } }
public static bool ContainsExpectedWorkspace(List<Workspace> expectedResult, Workspace operationResult) { bool isIdentical = false; foreach (Workspace expected in expectedResult) { isIdentical = expected.ClientUrl == operationResult.ClientUrl; isIdentical &= expected.EndUserFeedName == operationResult.EndUserFeedName; if (isIdentical) { break; } } return isIdentical; }