public BarbellPosition(MonthDate month, float selic, float ipca, float stocks, float dolar) { Month = month; Selic = selic; Ipca = ipca; Stocks = stocks; Dolar = dolar; }
static void PrintMonth(MonthDate month, BarbellWallet wallet) { Console.WriteLine($"{month}: {wallet.Balance:C0}"); }
public Position(MonthDate month, float value) { Month = month; Value = value; }
public Position AsPosition() => new Position(MonthDate.From(Date), Value);