CaffGeek/MBACNationals

View on GitHub
Commands/Scores/SaveMatch.cs

Summary

Maintainability
A
0 mins
Test Coverage
using System;

namespace MBACNationals.Scores.Commands
{
    public class SaveMatch
    {
        public Guid Id { get; private set; }
        public Guid TournamentId { get; private set; }
        public string Year { get; private set; }
        public string Division { get; private set; }
        public bool IsPOA { get; private set; }
        public int Number { get; private set; }
        public string Away { get; private set; }
        public string Home { get; private set; }
        public int Lane { get; private set; }
        public string Slot { get; private set; }
        public BowlingCentre Centre { get; private set; }
        public string CentreName { get; private set; }

        public SaveMatch(Guid guid, Guid tournamentId, string year, string division, int number, string away, string home, int lane, string slot, BowlingCentre centre, bool isPOA = false)
        {
            Id = guid;
            TournamentId = tournamentId;
            Year = year;
            Division = division;
            IsPOA = isPOA;
            Number = number;
            Away = away;
            Home = home;
            Lane = lane;
            Slot = slot;
            Centre = centre;
            CentreName = centre.ToString();
        }
    }
}