Browse Source

Modify marketing functional test

pull/223/head
Christian Arenas 7 years ago
parent
commit
486ba1872a
3 changed files with 6 additions and 6 deletions
  1. +1
    -1
      test/Services/FunctionalTests/Services/Locations/LocationsScenariosBase.cs
  2. +2
    -2
      test/Services/IntegrationTests/Services/Locations/LocationsScenarioBase.cs
  3. +3
    -3
      test/Services/IntegrationTests/Services/Locations/LocationsScenarios.cs

+ 1
- 1
test/Services/FunctionalTests/Services/Locations/LocationsScenariosBase.cs View File

@ -10,7 +10,7 @@
public TestServer CreateServer()
{
var webHostBuilder = new WebHostBuilder();
webHostBuilder.UseContentRoot(Directory.GetCurrentDirectory() + "\\Services\\Locations");
webHostBuilder.UseContentRoot(Directory.GetCurrentDirectory() + "\\Services\\Location");
webHostBuilder.UseStartup<LocationsTestsStartup>();
return new TestServer(webHostBuilder);


+ 2
- 2
test/Services/IntegrationTests/Services/Locations/LocationsScenarioBase.cs View File

@ -19,12 +19,12 @@ namespace IntegrationTests.Services.Locations
{
public static string Locations = "api/v1/locations";
public static string LocationBy(string id)
public static string LocationBy(int id)
{
return $"api/v1/locations/{id}";
}
public static string UserLocationBy(Guid id)
public static string UserLocationBy(string id)
{
return $"api/v1/locations/user/{id}";
}


+ 3
- 3
test/Services/IntegrationTests/Services/Locations/LocationsScenarios.cs View File

@ -19,7 +19,7 @@ namespace IntegrationTests.Services.Locations
{
using (var server = CreateServer())
{
var userId = new Guid("4611ce3f-380d-4db5-8d76-87a8689058ed");
var userId = "4611ce3f-380d-4db5-8d76-87a8689058ed";
var content = new StringContent(BuildLocationsRequest(-122.315752, 47.604610), UTF8Encoding.UTF8, "application/json");
// Expected result
@ -51,7 +51,7 @@ namespace IntegrationTests.Services.Locations
{
using (var server = CreateServer())
{
var userId = new Guid("4611ce3f-380d-4db5-8d76-87a8689058ed");
var userId = "4611ce3f-380d-4db5-8d76-87a8689058ed";
var content = new StringContent(BuildLocationsRequest(-122.119998, 47.690876), UTF8Encoding.UTF8, "application/json");
// Expected result
@ -83,7 +83,7 @@ namespace IntegrationTests.Services.Locations
{
using (var server = CreateServer())
{
var userId = new Guid("4611ce3f-380d-4db5-8d76-87a8689058ed");
var userId = "4611ce3f-380d-4db5-8d76-87a8689058ed";
var content = new StringContent(BuildLocationsRequest(-121.040360, 48.091631), UTF8Encoding.UTF8, "application/json");
// Expected result


Loading…
Cancel
Save