Added classes for Company, Customer, and Vehicle. Also added test for Vehicle class
Some checks failed
Avalonia Code Quality / Lint, Analyze & Build (push) Failing after 55s

This commit is contained in:
2025-06-05 03:43:09 +02:00
parent aa9abe884d
commit c82300da81
4 changed files with 65 additions and 2 deletions

View File

@ -1,5 +1,6 @@
using Avalonia;
using System;
using Invoice_App.Models;
namespace Invoice_App;
@ -9,8 +10,28 @@ class Program
// SynchronizationContext-reliant code before AppMain is called: things aren't initialized
// yet and stuff might break.
[STAThread]
public static void Main(string[] args) => BuildAvaloniaApp()
.StartWithClassicDesktopLifetime(args);
public static void Main(string[] args)
{
TestVehicleClass();
BuildAvaloniaApp()
.StartWithClassicDesktopLifetime(args);
}
private static void TestVehicleClass()
{
var testCar = new Vehicle();
testCar.Make = "BMW";
testCar.Model = "320i";
testCar.VinNumber = "ABC123";
testCar.Kilometers = 50000;
testCar.RegistrationDate = DateTime.Now;
testCar.Comments = "Good condition";
// No console output for now - just creating the object to test compilation
}
// Avalonia configuration, don't remove; also used by visual designer.
public static AppBuilder BuildAvaloniaApp()
@ -18,4 +39,5 @@ class Program
.UsePlatformDetect()
.WithInterFont()
.LogToTrace();
}