public async Task FunctionalEndToEndCreateTest() { var batchService = new BatchService(ConfigurationHelper.GetConfiguration()); Assert.IsTrue(string.IsNullOrWhiteSpace(batchService.HasValidConfiguration())); var controller = ControllerExtensions.NewCloudController(); // Create a fully functional json body var jsonBody = new CreateApiJsonBody { TurnPoolId = "TEST_TURN", RenderingPoolId = "TEST_RENDERING" }; var result = await controller.Post((JObject)JToken.FromObject(jsonBody)); Assert.IsInstanceOfType(result, typeof(HttpResponseMessage)); var pool = batchService.GetPoolsInBatch(); Assert.IsNotNull(pool.FirstOrDefault(p => p.Id == jsonBody.TurnPoolId)); Assert.IsNotNull(pool.FirstOrDefault(p => p.Id == jsonBody.RenderingPoolId)); }