2017-03-17 15:57:57 +01:00
|
|
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
|
|
using Microsoft.AspNetCore.TestHost;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace FunctionalTests.Services.Basket
|
|
|
|
|
{
|
|
|
|
|
public class BasketScenariosBase
|
|
|
|
|
{
|
|
|
|
|
public TestServer CreateServer()
|
|
|
|
|
{
|
|
|
|
|
var webHostBuilder = new WebHostBuilder();
|
|
|
|
|
webHostBuilder.UseContentRoot(Directory.GetCurrentDirectory());
|
|
|
|
|
webHostBuilder.UseStartup<BasketTestsStartup>();
|
|
|
|
|
|
|
|
|
|
return new TestServer(webHostBuilder);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class Get
|
|
|
|
|
{
|
|
|
|
|
public static string GetBasketByCustomer(string customerId)
|
|
|
|
|
{
|
|
|
|
|
return $"/{customerId}";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class Post
|
|
|
|
|
{
|
|
|
|
|
public static string CreateBasket = "/";
|
2017-05-18 08:40:35 +02:00
|
|
|
|
public static string Checkout = "/checkout";
|
2017-03-17 15:57:57 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|