Ejemplo n.º 1
0
        public void SubParticipantsTest()
        {
            var fixture = TestHelper.GetFixtureFromResource("football-inplay-snapshot-1");

            fixture.Participants.Should().NotBeNull();
            fixture.Participants.Should().NotBeEmpty();
            fixture.Participants.First().SubParticpants.Should().BeEmpty();

            fixture.Participants.Last().Name.Should().Be("River Plate");
            fixture.Participants.Last().SubParticpants.Count().Should().BeGreaterOrEqualTo(1);
        }
Ejemplo n.º 2
0
        public void SelectionResultStateFromSnapshotTest()
        {
            var fixture = TestHelper.GetFixtureFromResource("horseracing");

            fixture.Should().NotBeNull();

            var mkt = fixture.Markets.FirstOrDefault(x => x.Type == "winner");

            mkt.Should().NotBeNull();

            var seln = mkt.Selections.FirstOrDefault(x => x.Id == "WFgqLzN9BiseBQB8UprYsY4GGuY");

            seln.PlaceResult.Should().NotBeNull();
            seln.PlaceResult.WinParticipants.Should().Be(1);
            seln.PlaceResult.StakeParticipants.Should().Be(1);
            seln.PlaceResult.WinPlaces.Should().Be(1);
            seln.PlaceResult.StakePlaces.Should().Be(1);

            seln.Result.Should().NotBeNull();
            seln.Result.WinParticipants.Should().Be(1);
            seln.Result.StakeParticipants.Should().Be(1);
            seln.Result.StakePlaces.Should().Be(1);
            seln.Result.WinPlaces.Should().Be(1);
        }