public TestBuilder CreateApplication() { var retrieveResponse = Client.RetrieveApplication(ApplicationId); if (retrieveResponse.WasSuccessful()) { AssertSuccess(Client.DeleteApplication(ApplicationId)); } var application = new Application("CSharp Client Test"); var response = Client.CreateApplication(ApplicationId, new ApplicationRequest(new Application("CSharp Client Test"), null)); AssertSuccess(response); Assert.AreEqual(application.name, response.successResponse.application.name); Application = response.successResponse.application; return(this); }
public TestBuilder createApplication() { var retrieveResponse = client.RetrieveApplication(ApplicationId); if (retrieveResponse.WasSuccessful()) { assertSuccess(client.DeleteApplication(ApplicationId)); } var application = new Application() .with(app => app.name = "CSharp Client Test"); var response = client.CreateApplication(ApplicationId, new ApplicationRequest() .with(ar => ar.application = new Application() .with(app => app.name = "CSharp Client Test"))); assertSuccess(response); Assert.AreEqual(application.name, response.successResponse.application.name); this.application = response.successResponse.application; return(this); }