RateMyAmenity.Controllers.RateAPIController.GetRateAPIsByName C# (CSharp) Method

GetRateAPIsByName() public method

public GetRateAPIsByName ( string name ) : IEnumerable
name string
return IEnumerable
        public IEnumerable<RateAPI> GetRateAPIsByName(string name)
        {
            return RateAPIs().Where(
                (r) => string.Equals(r.Name, name,
                   StringComparison.OrdinalIgnoreCase));
        }

Usage Example

Ejemplo n.º 1
0
 public void GetRateAPIsByNameTest()
 {
     RateAPIController target = new RateAPIController(); // TODO: Initialize to an appropriate value
     string name = string.Empty; // TODO: Initialize to an appropriate value
     IEnumerable<RateAPI> expected = null; // TODO: Initialize to an appropriate value
     IEnumerable<RateAPI> actual;
     actual = target.GetRateAPIsByName(name);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }