public async Task Post_AddNewGeneratorEndOfStateList(string url)
        {
            // Arrange
            var client = _factory.WithWebHostBuilder(builder =>
            {
                builder.ConfigureTestServices(services =>
                {
                    //Override IService called during POST to return specific test calendar
                    services.AddScoped <IDateService, DateServiceTest>();
                });
            })
                         .CreateClient();

            var testWebClient = new TestWebClient(client);

            testWebClient.Login();

            Console.WriteLine($"Calling Api Endpoint {url} ");
            var results = await testWebClient.GetPlanningApps();

            Assert.True(results.Items.Count() == 0);

            var projectGenerators = await testWebClient.GetProjectGenerator();

            var pg = projectGenerators.Items.FirstOrDefault();
            var planningAppResource = await testWebClient.CreatePlanningApp(pg.Id);

            Assert.Equal(planningAppResource.ProjectGeneratorName, TestSettings.ProjectGeneratorName);
            Assert.True(planningAppResource.PlanningAppStates.Count() == TestSettings.OneState);

            //Check Ordering
            var stateList = planningAppResource.PlanningAppStates.ToList();

            //Check Planning App Details
            Assert.Equal("03-01-2019", planningAppResource.CompletionDate);
            Assert.Equal("OnTime", planningAppResource.CurrentStateStatus);
            Assert.Equal("03-01-2019", stateList[0].DueByDate);

            //Loop states and check settings
            Assert.True(testWebClient.checkListOrdering(stateList));

            //Check new generator start flag
            Assert.True(stateList[0].isLastGeneratorState);
        }