Newer
Older
TestingWithoutInterfaces / src / ApplicationCore / Specifications / CatalogItemNameSpecification.cs
@Derek Comartin Derek Comartin on 5 Dec 2022 356 bytes Init
using Ardalis.Specification;
using Microsoft.eShopWeb.ApplicationCore.Entities;

namespace Microsoft.eShopWeb.ApplicationCore.Specifications;

public class CatalogItemNameSpecification : Specification<CatalogItem>
{
    public CatalogItemNameSpecification(string catalogItemName)
    {
        Query.Where(item => catalogItemName == item.Name);
    }
}