using ProjectGarage.Entities.Enums; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProjectGarage.Entities; public class Truck { public int Id { get; private set; } public string Numbers { get; private set; } = string.Empty; public TruckType Type { get; set; } public int MaxFuel { get; private set; } public static Truck CreateTruck(int id,string numbers, TruckType type, int maxFuel) { return new Truck() { Id = id, Numbers = numbers, Type = type, MaxFuel = maxFuel }; } }