public void GetAgentDetails_PositiveTest() { GetAgentDetailsRequestContainer requestContainer = new GetAgentDetailsRequestContainer() { AgentId = Guid.NewGuid().ToString(), ProviderName = "SqlTestProvider", UserId = Guid.NewGuid().ToString() }; GetAgentDetailsReturnContainer returnContainer = CommandTestHelper.SendRequest<GetAgentDetailsRequestContainer, GetAgentDetailsReturnContainer>("GetAgentDetails", requestContainer); Assert.AreEqual(returnContainer.ReturnCode, ReturnCodes.C101, "Return codes."); }
/// <summary> /// Gets the agent details. /// </summary> /// <param name="contents">The contents.</param> /// <returns> /// Get agent details container /// </returns> GetAgentDetailsReturnContainer IServiceMe.GetAgentDetails(GetAgentDetailsRequestContainer contents) { try { return (GetAgentDetailsReturnContainer)this.RunCommand(new GetAgentDetailsCommand(), contents); } catch (Exception) { return new GetAgentDetailsReturnContainer() { ReturnCode = ReturnCodes.GenericExceptionErrorCode }; } }