Beispiel #1
0
            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);
            }
Beispiel #2
0
 /// <summary>
 ///     Returns the Identifier of the newly created 'ClientApplications' resource.
 /// </summary>
 protected string GetCreateClientApplicationResponseId(CreateClientApplicationResponse response)
 {
     return((response.ClientApplication != null) ? response.ClientApplication.Id : null);
 }