public static void SetUpDefaultWorkspace(Mock<IRemoteAppManagementClient> clientMock, string clientUrl, string endUserFeedName) { ISetup<IRemoteAppManagementClient, Task<GetAccountResult>> Setup = null; GetAccountResult response = new GetAccountResult() { RequestId = "7834-12346", StatusCode = System.Net.HttpStatusCode.OK, Details = new AccountDetails() { ClientUrl = clientUrl, EndUserFeedName = endUserFeedName } }; mockWorkspace = new List<Workspace>() { new Workspace(response) }; Setup = clientMock.Setup(c => c.Account.GetAsync(It.IsAny<CancellationToken>())); Setup.Returns(Task.Factory.StartNew(() => response)); }
public Workspace(GetAccountResult accountResult) { ClientUrl = accountResult.Details.ClientUrl; EndUserFeedName = accountResult.Details.EndUserFeedName; }
public Workspace(GetAccountResult accountResult) { ClientUrl = accountResult.Details.ClientUrl; EndUserFeedName = accountResult.Details.EndUserFeedName; }