public BaseStockQuotation(int stockShares, StockIdentifier stockIdentifier, string ownerName, decimal price, Guid ownerId, QuotationType type) { _stockShares = stockShares; _stockIdentifier = stockIdentifier; _ownerName = ownerName; _price = price; _ownerId = ownerId; _type = type; }
private static void CreateNotification( string notificationType, string buyer, string seller, StockIdentifier stockIdentifier, int shares, decimal price) { PrintDetailInGreen($"\n[{DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss")}] {notificationType} executed", string.Empty); PrintDetailInGreen("Buyer", buyer); PrintDetailInGreen("Seller", seller); PrintDetailInGreen("Stock Identifier", stockIdentifier); PrintDetailInGreen("Shares", shares); PrintDetailInGreen("Price", price); }
public StockQuotationProposal( int stockShares, StockIdentifier stockIdentifier, string ownerName, decimal price, Guid ownerId, QuotationType type) : base(stockShares, stockIdentifier, ownerName, price, ownerId, type) { }