public void ToString_WhenCalled_ProducesExpectedOutput() { // Arrange var sut = new StadiumPosition("BA", "12", "34"); // Act var res = sut.ToString(); // Assert res.Should().Be("BA:12:34", "those are the 'coordinates' of the seat"); }
public void Export(IList <BillettServiceSete> seter, string input) { Console.WriteLine("Rapporterer status på seter som matcher {0}", input); foreach (var seat in seter) { var pos = new StadiumPosition(seat.SectionName, seat.RowName, seat.SeatName); if (pos.IsMatch(input)) { Console.WriteLine("{0} {1} ({2})", pos.ToString().PadRight(15), seat.EttCode.Code, SeatStatusClassifier.Classify(seat.EttCode.Code)); } } }