diff --git a/Models/Company.cs b/Models/Company.cs index 97a3cdc..f7bdccd 100644 --- a/Models/Company.cs +++ b/Models/Company.cs @@ -13,5 +13,4 @@ public class Company public string PhoneNumber { get; set; } public string? AccountRegistration { get; set; } public string? AccountNumber { get; set; } - } \ No newline at end of file diff --git a/Models/Invoice.cs b/Models/Invoice.cs index 7f66f11..b2ce590 100644 --- a/Models/Invoice.cs +++ b/Models/Invoice.cs @@ -2,5 +2,4 @@ public class Invoice { - } \ No newline at end of file diff --git a/Models/Vehicle.cs b/Models/Vehicle.cs index dcbf3da..a6ae941 100644 --- a/Models/Vehicle.cs +++ b/Models/Vehicle.cs @@ -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; } +} \ No newline at end of file diff --git a/Program.cs b/Program.cs index f702c5a..6aa21d1 100644 --- a/Program.cs +++ b/Program.cs @@ -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(); - -} +} \ No newline at end of file