public void Should_GetStarshipStops_Millennium_Falcon_Stops_9_Times() { System.Collections.Generic.List <Models.StarshipModel> returnValue = StarshipBusiness.GetStarshipStops(1000000); Assert.IsNotNull(returnValue); Models.StarshipModel ywing = returnValue.FirstOrDefault(x => x.name.ToLower() == "millennium falcon"); Assert.IsNotNull(ywing); Assert.AreEqual(ywing.stops, 9); Assert.Pass("OK for GetStarshipStops Millennium Falcon stops 9 times test"); }
public void Should_GetStarshipStop_Rebel_Transport_Stops_11_Times() { System.Collections.Generic.List <Models.StarshipModel> returnValue = StarshipBusiness.GetStarshipStops(1000000); Assert.IsNotNull(returnValue); Models.StarshipModel ywing = returnValue.FirstOrDefault(x => x.name.ToLower() == "rebel transport"); Assert.IsNotNull(ywing); Assert.AreEqual(ywing.stops, 11); Assert.Pass("OK for GetStarshipStops Rebel Transport stops 11 times test"); }
public void Should_GetStarshipStops_Ywing_Stops_74_Times() { System.Collections.Generic.List <Models.StarshipModel> returnValue = StarshipBusiness.GetStarshipStops(1000000); Assert.IsNotNull(returnValue); Models.StarshipModel ywing = returnValue.FirstOrDefault(x => x.name.ToLower() == "y-wing"); Assert.IsNotNull(ywing); Assert.AreEqual(ywing.stops, 74); Assert.Pass("OK for GetStarshipStops Y-wing stops 74 times test"); }