خرید بک لینک

Vote count: 0

I have a web api and I am exposing a endpoint like so:

api/Holiday?name={name}

This is the controller get method for the web api:

    public IQueryable<Holiday> GetHolidayByName(string name)
    {
        retu db.Holiday.Where(n => string.Equals(n.Name, name));
    }

How can I write a unit test for this that checks the names are equal?

asked 29 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 12 مرداد 1395 ساعت: 2:54

صفحه بندی