Skip to content

Commit 486ba18

Browse files
committed
Modify marketing functional test
1 parent 794d366 commit 486ba18

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

test/Services/FunctionalTests/Services/Locations/LocationsScenariosBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class LocationsScenariosBase
1010
public TestServer CreateServer()
1111
{
1212
var webHostBuilder = new WebHostBuilder();
13-
webHostBuilder.UseContentRoot(Directory.GetCurrentDirectory() + "\\Services\\Locations");
13+
webHostBuilder.UseContentRoot(Directory.GetCurrentDirectory() + "\\Services\\Location");
1414
webHostBuilder.UseStartup<LocationsTestsStartup>();
1515

1616
return new TestServer(webHostBuilder);

test/Services/IntegrationTests/Services/Locations/LocationsScenarioBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ public static class Get
1919
{
2020
public static string Locations = "api/v1/locations";
2121

22-
public static string LocationBy(string id)
22+
public static string LocationBy(int id)
2323
{
2424
return $"api/v1/locations/{id}";
2525
}
2626

27-
public static string UserLocationBy(Guid id)
27+
public static string UserLocationBy(string id)
2828
{
2929
return $"api/v1/locations/user/{id}";
3030
}

test/Services/IntegrationTests/Services/Locations/LocationsScenarios.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public async Task Set_new_user_seattle_location_response_ok_status_code()
1919
{
2020
using (var server = CreateServer())
2121
{
22-
var userId = new Guid("4611ce3f-380d-4db5-8d76-87a8689058ed");
22+
var userId = "4611ce3f-380d-4db5-8d76-87a8689058ed";
2323
var content = new StringContent(BuildLocationsRequest(-122.315752, 47.604610), UTF8Encoding.UTF8, "application/json");
2424

2525
// Expected result
@@ -51,7 +51,7 @@ public async Task Set_new_user_readmond_location_response_ok_status_code()
5151
{
5252
using (var server = CreateServer())
5353
{
54-
var userId = new Guid("4611ce3f-380d-4db5-8d76-87a8689058ed");
54+
var userId = "4611ce3f-380d-4db5-8d76-87a8689058ed";
5555
var content = new StringContent(BuildLocationsRequest(-122.119998, 47.690876), UTF8Encoding.UTF8, "application/json");
5656

5757
// Expected result
@@ -83,7 +83,7 @@ public async Task Set_new_user_Washington_location_response_ok_status_code()
8383
{
8484
using (var server = CreateServer())
8585
{
86-
var userId = new Guid("4611ce3f-380d-4db5-8d76-87a8689058ed");
86+
var userId = "4611ce3f-380d-4db5-8d76-87a8689058ed";
8787
var content = new StringContent(BuildLocationsRequest(-121.040360, 48.091631), UTF8Encoding.UTF8, "application/json");
8888

8989
// Expected result

0 commit comments

Comments
 (0)