Skip to content

Commit

Permalink
Expose left neighbour and right neighbour of a seat in reports
Browse files Browse the repository at this point in the history
  • Loading branch information
mroloux committed May 27, 2020
1 parent d710ad0 commit c5d4ca4
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions SeatsioDotNet.Test/ChartReports/ChartReportsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public void ReportItemProperties()
Assert.Null(reportItem.Section);
Assert.Null(reportItem.Entrance);
Assert.Null(reportItem.Capacity);
Assert.Null(reportItem.LeftNeighbour);
Assert.Equal("A-2", reportItem.RightNeighbour);
}

[Fact]
Expand Down
2 changes: 2 additions & 0 deletions SeatsioDotNet.Test/EventReports/EventReportsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public void ReportItemProperties()
Assert.False(reportItem.IsCompanionSeat);
Assert.False(reportItem.HasRestrictedView);
Assert.Null(reportItem.DisplayedObjectType);
Assert.Null(reportItem.LeftNeighbour);
Assert.Equal("A-2", reportItem.RightNeighbour);
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public void ObjectDetails()
Assert.Null(reportItem.Entrance);
Assert.Null(reportItem.NumBooked);
Assert.Null(reportItem.Capacity);
Assert.Equal("B-3", reportItem.LeftNeighbour);
Assert.Equal("B-5", reportItem.RightNeighbour);
}

[Fact]
Expand Down
2 changes: 2 additions & 0 deletions SeatsioDotNet.Test/Events/ChangeObjectStatusTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public void Test()
Assert.Null(reportItem.Entrance);
Assert.Null(reportItem.NumBooked);
Assert.Null(reportItem.Capacity);
Assert.Null(reportItem.LeftNeighbour);
Assert.Equal("A-2", reportItem.RightNeighbour);
}

[Fact]
Expand Down
2 changes: 2 additions & 0 deletions SeatsioDotNet/ChartReports/ChartReportItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ public class ChartReportItem
public string Section { get; set; }
public string Entrance { get; set; }
public int? Capacity { get; set; }
public string LeftNeighbour { get; set; }
public string RightNeighbour { get; set; }
}
}
2 changes: 2 additions & 0 deletions SeatsioDotNet/EventReports/EventReportItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@ public class EventReportItem
public bool? IsCompanionSeat { get; set; }
public bool? HasRestrictedView { get; set; }
public string DisplayedObjectType { get; set; }
public string LeftNeighbour { get; set; }
public string RightNeighbour { get; set; }
}
}
2 changes: 1 addition & 1 deletion SeatsioDotNet/SeatsioDotNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Library</OutputType>
<IsPackable>true</IsPackable>
<Version>70.3.0</Version>
<Version>70.4.0</Version>
<Authors>mroloux;bverbeken</Authors>
<Title>Official Seats.io .NET API client</Title>
<Description>Official Seats.io .NET API client</Description>
Expand Down

0 comments on commit c5d4ca4

Please sign in to comment.