Should really have fixed indentations now
Some checks failed
Avalonia Code Quality / Lint, Analyze & Build (push) Failing after 57s
Some checks failed
Avalonia Code Quality / Lint, Analyze & Build (push) Failing after 57s
This commit is contained in:
@ -13,5 +13,4 @@ public class Company
|
||||
public string PhoneNumber { get; set; }
|
||||
public string? AccountRegistration { get; set; }
|
||||
public string? AccountNumber { get; set; }
|
||||
|
||||
}
|
||||
@ -2,5 +2,4 @@
|
||||
|
||||
public class Invoice
|
||||
{
|
||||
|
||||
}
|
||||
@ -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; }
|
||||
}
|
||||
64
Program.cs
64
Program.cs
@ -11,43 +11,42 @@ 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";
|
||||
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 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.
|
||||
@ -56,5 +55,4 @@ class Program
|
||||
.UsePlatformDetect()
|
||||
.WithInterFont()
|
||||
.LogToTrace();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user