You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 }
};
}
The text was updated successfully, but these errors were encountered:
ProviderStateMiddleware.cs
The text was updated successfully, but these errors were encountered: