private void SetupPrecision(Structs.CompetitionTypeEnum CompetitionType, bool Norwegian, out ResultsReturn obj1, out ResultsReturn obj2, string testName, Structs.CompetitionChampionshipEnum ChampionShip) { obj1 = new ResultsReturn(CompetitionType, Norwegian, ChampionShip); obj1.ClubId = "01-42"; obj1.CompetitorId = 1; obj1.FigureHitsTotal = 12; obj1.FinalShootingPlace = 100; obj1.HitsTotal = 100; obj1.PointsTotal = 0; obj1.ShooterName = "First Shooter " + testName; obj1.HitsPerStn = new int[] { 50, 50 }; obj1.FigureHitsPerStn = new int[] { 0, 0 }; obj1.PointsPerStn = new int[] { 0, 0 }; obj2 = new ResultsReturn(CompetitionType, Norwegian, ChampionShip); obj2.ClubId = "01-42"; obj2.CompetitorId = 1; obj2.FigureHitsTotal = 12; obj2.FinalShootingPlace = 100; obj2.HitsTotal = 100; obj2.PointsTotal = 0; obj2.ShooterName = "Second Shooter " + testName; obj2.HitsPerStn = new int[] { 50, 50 }; obj2.FigureHitsPerStn = new int[] { 0, 0 }; obj2.PointsPerStn = new int[] { 0, 0 }; }
public ResultsReturn( Structs.CompetitionTypeEnum CompetitionType, bool norwegian, Structs.CompetitionChampionshipEnum ChampionShip) { this.CompetitionType = CompetitionType; this.Norwegian = norwegian; this.ChampionShip = ChampionShip; }