public void IsValid_ReturnsCorrectly(SeatDetailed seat, bool expected)
        {
            var actual = seat.IsValid();

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 2
0
 public static bool IsValid(this SeatDetailed seat)
 {
     return(seat != null &&
            !string.IsNullOrEmpty(seat.SeatIdentifier) &&
            seat.Attributes != null && seat.Attributes.Any());
 }