public void GetByGender_Found() { GenderType type = GenderType.Male; var result = contract.GetByGender(type); Assert.IsNotNull(result); Assert.AreNotEqual(0, result.Count); result.ForEach(p => Assert.AreEqual(type, p.Gender)); }
/// <summary> /// Gets all the passengers by gender /// </summary> /// <param name="gender">Passenger's Gender (Male or Female)</param> /// <returns>List of Passenger</returns> public HttpResponseMessage GetByGender(GenderType gender) => CreateResponse(() => passengersContract.GetByGender(gender) );