Modify marketing functional test
This commit is contained in:
parent
be5cfe7399
commit
9c1edf8e08
@ -10,7 +10,7 @@
|
|||||||
public TestServer CreateServer()
|
public TestServer CreateServer()
|
||||||
{
|
{
|
||||||
var webHostBuilder = new WebHostBuilder();
|
var webHostBuilder = new WebHostBuilder();
|
||||||
webHostBuilder.UseContentRoot(Directory.GetCurrentDirectory() + "\\Services\\Locations");
|
webHostBuilder.UseContentRoot(Directory.GetCurrentDirectory() + "\\Services\\Location");
|
||||||
webHostBuilder.UseStartup<LocationsTestsStartup>();
|
webHostBuilder.UseStartup<LocationsTestsStartup>();
|
||||||
|
|
||||||
return new TestServer(webHostBuilder);
|
return new TestServer(webHostBuilder);
|
||||||
|
@ -19,12 +19,12 @@ namespace IntegrationTests.Services.Locations
|
|||||||
{
|
{
|
||||||
public static string Locations = "api/v1/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}";
|
return $"api/v1/locations/{id}";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string UserLocationBy(Guid id)
|
public static string UserLocationBy(string id)
|
||||||
{
|
{
|
||||||
return $"api/v1/locations/user/{id}";
|
return $"api/v1/locations/user/{id}";
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ namespace IntegrationTests.Services.Locations
|
|||||||
{
|
{
|
||||||
using (var server = CreateServer())
|
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");
|
var content = new StringContent(BuildLocationsRequest(-122.315752, 47.604610), UTF8Encoding.UTF8, "application/json");
|
||||||
|
|
||||||
// Expected result
|
// Expected result
|
||||||
@ -51,7 +51,7 @@ namespace IntegrationTests.Services.Locations
|
|||||||
{
|
{
|
||||||
using (var server = CreateServer())
|
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");
|
var content = new StringContent(BuildLocationsRequest(-122.119998, 47.690876), UTF8Encoding.UTF8, "application/json");
|
||||||
|
|
||||||
// Expected result
|
// Expected result
|
||||||
@ -83,7 +83,7 @@ namespace IntegrationTests.Services.Locations
|
|||||||
{
|
{
|
||||||
using (var server = CreateServer())
|
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");
|
var content = new StringContent(BuildLocationsRequest(-121.040360, 48.091631), UTF8Encoding.UTF8, "application/json");
|
||||||
|
|
||||||
// Expected result
|
// Expected result
|
||||||
|
Loading…
x
Reference in New Issue
Block a user