Should really have fixed indentations now
Some checks failed
Avalonia Code Quality / Lint, Analyze & Build (push) Failing after 57s

This commit is contained in:
2025-06-05 05:03:56 +02:00
parent b2246726a5
commit 248c56b0d3
4 changed files with 41 additions and 45 deletions

View File

@ -13,5 +13,4 @@ public class Company
public string PhoneNumber { get; set; }
public string? AccountRegistration { get; set; }
public string? AccountNumber { get; set; }
}

View File

@ -2,5 +2,4 @@
public class Invoice
{
}

View File

@ -4,10 +4,10 @@ namespace Invoice_App.Models;
public class Vehicle
{
public string? Make { get; set; }
public string? Model { get; set; }
public DateTime? RegistrationDate { get; set; }
public string? VinNumber { get; set; }
public decimal? Kilometers { get; set; }
public string? Comments { get; set; }
}
public string? Make { get; set; }
public string? Model { get; set; }
public DateTime? RegistrationDate { get; set; }
public string? VinNumber { get; set; }
public decimal? Kilometers { get; set; }
public string? Comments { get; set; }
}

View File

@ -11,44 +11,43 @@ class Program
// yet and stuff might break.
[STAThread]
public static void Main(string[] args)
{
TestVehicleClass();
{
TestVehicleClass();
BuildAvaloniaApp()
.StartWithClassicDesktopLifetime(args);
}
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";
// Test Company
var testCompany = new Company();
testCompany.CompanyName = "ABC Motors";
testCompany.Address = "Kongens Nytorv 1";
testCompany.ZipCode = "1050"; // Copenhagen K
testCompany.City = "Copenhagen";
testCompany.CVR = "12345678";
testCompany.PhoneNumber = "33123456";
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";
// Test Company
var testCompany = new Company();
testCompany.CompanyName = "ABC Motors";
testCompany.Address = "Kongens Nytorv 1";
testCompany.ZipCode = "1050"; // Copenhagen K
testCompany.City = "Copenhagen";
testCompany.CVR = "12345678";
testCompany.PhoneNumber = "33123456";
// Test Customer
var testCustomer = new Customer();
testCustomer.Name = "Lars Nielsen";
testCustomer.Address = "Vesterbrogade 123";
testCustomer.ZipCode = "1620";
testCustomer.City = "Copenhagen V";
testCustomer.PhoneNumber = "23456789";
testCustomer.Email = "lars@example.com";
}
// Test Customer
var testCustomer = new Customer();
testCustomer.Name = "Lars Nielsen";
testCustomer.Address = "Vesterbrogade 123";
testCustomer.ZipCode = "1620";
testCustomer.City = "Copenhagen V";
testCustomer.PhoneNumber = "23456789";
testCustomer.Email = "lars@example.com";
}
// Avalonia configuration, don't remove; also used by visual designer.
public static AppBuilder BuildAvaloniaApp()
@ -56,5 +55,4 @@ class Program
.UsePlatformDetect()
.WithInterFont()
.LogToTrace();
}
}