You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.3 KiB
66 lines
1.3 KiB
//
|
|
// MockData.swift
|
|
// PadelClub
|
|
//
|
|
// Created by Razmig Sarkissian on 20/03/2024.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension Court {
|
|
static func mock() -> Court {
|
|
Court(club: "", name: "Test", index: 0)
|
|
}
|
|
}
|
|
|
|
extension Event {
|
|
static func mock() -> Event {
|
|
Event()
|
|
}
|
|
}
|
|
|
|
extension Club {
|
|
static func mock() -> Club {
|
|
Club(name: "AUC", acronym: "AUC")
|
|
}
|
|
|
|
static func newEmptyInstance() -> Club {
|
|
Club(name: "", acronym: "")
|
|
}
|
|
}
|
|
|
|
extension GroupStage {
|
|
static func mock() -> GroupStage {
|
|
GroupStage(tournament: "", index: 0, size: 4)
|
|
}
|
|
}
|
|
|
|
extension Round {
|
|
static func mock() -> Round {
|
|
Round(tournament: "", index: 0)
|
|
}
|
|
}
|
|
|
|
extension Tournament {
|
|
static func mock() -> Tournament {
|
|
Tournament(groupStageSortMode: .snake, teamSorting: .inscriptionDate, federalCategory: .men, federalLevelCategory: .p100, federalAgeCategory: .senior)
|
|
}
|
|
}
|
|
|
|
extension Match {
|
|
static func mock() -> Match {
|
|
Match(index: 0)
|
|
}
|
|
}
|
|
|
|
extension TeamRegistration {
|
|
static func mock() -> TeamRegistration {
|
|
TeamRegistration(tournament: "")
|
|
}
|
|
}
|
|
|
|
extension PlayerRegistration {
|
|
static func mock() -> PlayerRegistration {
|
|
PlayerRegistration(firstName: "Raz", lastName: "Shark", sex: 1)
|
|
}
|
|
}
|
|
|