This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Item | |
{ | |
public Item(string name, double price) | |
{ | |
Name = name; | |
Price = price; | |
PurchaseTime = DateTime.Now; | |
} | |
public string Name { get; protected set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Order | |
{ | |
public TimeSpan _purchaseSpanLimit = new TimeSpan(2, 0, 0); | |
public Guid Id { get; } | |
public List<Item> Items { get; } | |
public Order() | |
{ | |
Id = Guid.NewGuid(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node.js CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: |