public void Run() { /* * Abstract classes cannot be instanced */ //var customer = new Customer(); var consumerCustomer = new ConsumerCustomer { Address = "King's Landing", Email = "*****@*****.**", Id = Guid.NewGuid(), Name = "Jon Snow", Type = "Basic" }; consumerCustomer.Display(); var businessCustomer = new BusinessCustomer { Address = "Pentos", CUI = "12322322", Id = Guid.NewGuid(), Name = "Iron Bank", VAT = 21.0 }; businessCustomer.Display(); }
public void Run() { var customer = new Customer { Id = Guid.NewGuid() }; customer.Display(); var consumerCustomer = new ConsumerCustomer { Id = Guid.NewGuid(), Address = "Pentos", Email = "*****@*****.**", Name = "Grey Worm", Type = "Standard" }; consumerCustomer.Display(); var businessCustomer = new BusinessCustomer { Id = Guid.NewGuid(), Address = "Pentos", Name = "Iron Bank", CUI = "3654588", VAT = 10.2 }; businessCustomer.Display(); }