Missing step to update dictionary for "No auth token is provided"
hwilliams-bod opened this issue · comments
ProviderStateMiddleware.cs
public ProviderStateMiddleware(RequestDelegate next, IProductRepository repository)
{
_next = next;
_repository = repository;
_providerStates = new Dictionary<string, Action>
{
{ "products exist", ProductsExist },
{ "no products exist", NoProductsExist },
{ "product with ID 11 does not exist", Product11DoesNotExist },
{ "product with ID 10 exists", Product10Exists },
//Should include
{ "No auth token is provided", Product10Exists }
};
}