public void WhenPostCreateClientApplication_ThenManagerReturnsClientApplication() { var response = new CreateClientApplicationResponse(); this.clientapplicationsManager.Setup(man => man.CreateClientApplication(It.IsAny <IRequest>(), It.IsAny <CreateClientApplication>())) .Returns(response); var result = this.service.Post(new CreateClientApplication()); this.clientapplicationsManager.Verify(man => man.CreateClientApplication(It.IsAny <IRequest>(), It.IsAny <CreateClientApplication>()), Times.Once()); Assert.Equal(response, result); }
/// <summary> /// Returns the Identifier of the newly created 'ClientApplications' resource. /// </summary> protected string GetCreateClientApplicationResponseId(CreateClientApplicationResponse response) { return((response.ClientApplication != null) ? response.ClientApplication.Id : null); }