Skip to content

Commit

Permalink
Exposed labels property on chart reporting and event reporting calls
Browse files Browse the repository at this point in the history
  • Loading branch information
mroloux committed Oct 16, 2018
1 parent 9fbeb8b commit 0c49193
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions SeatsioDotNet.Test/ChartReports/ChartReportsTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.Linq;
using FluentAssertions;
using SeatsioDotNet.Events;
using Xunit;

namespace SeatsioDotNet.Test.ChartReports
Expand All @@ -14,6 +16,7 @@ public void ReportItemProperties()

var reportItem = report["A-1"].First();
Assert.Equal("A-1", reportItem.Label);
reportItem.Labels.Should().BeEquivalentTo(new Labels("1", "seat", "A", "row"));
Assert.Equal("Cat1", reportItem.CategoryLabel);
Assert.Equal(9, reportItem.CategoryKey);
Assert.Equal("seat", reportItem.ObjectType);
Expand Down
2 changes: 2 additions & 0 deletions SeatsioDotNet.Test/EventReports/EventReportsTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using System.Linq;
using FluentAssertions;
using SeatsioDotNet.Events;
using Xunit;

Expand All @@ -19,6 +20,7 @@ public void ReportItemProperties()

var reportItem = report["A-1"].First();
Assert.Equal("A-1", reportItem.Label);
reportItem.Labels.Should().BeEquivalentTo(new Labels("1", "seat", "A", "row"));
Assert.Equal(ObjectStatus.Booked, reportItem.Status);
Assert.Equal("Cat1", reportItem.CategoryLabel);
Assert.Equal(9, reportItem.CategoryKey);
Expand Down
5 changes: 4 additions & 1 deletion SeatsioDotNet/ChartReports/ChartReportItem.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
namespace SeatsioDotNet.ChartReports
using SeatsioDotNet.Events;

namespace SeatsioDotNet.ChartReports
{
public class ChartReportItem
{
public string Label { get; set; }
public Labels Labels { get; set; }
public string CategoryLabel { get; set; }
public int? CategoryKey { get; set; }
public string ObjectType { get; set; }
Expand Down
2 changes: 2 additions & 0 deletions SeatsioDotNet/EventReports/EventReportItem.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using System.Collections.Generic;
using SeatsioDotNet.Events;

namespace SeatsioDotNet.EventReports
{
public class EventReportItem
{
public string Label { get; set; }
public Labels Labels { get; set; }
public string Status { get; set; }
public string CategoryLabel { get; set; }
public int? CategoryKey { get; set; }
Expand Down
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>44</Version>
<Version>45</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 0c49193

Please sign in to comment.