public MutualFund( string tickerSymbol, string name, CurrencyCode currencyCode) { _currencyCode = currencyCode; TickerSymbol = tickerSymbol; Name = name; }
public DomainEvent( MutualFundEventTypeForCurrencyChange eventType, DateTime effectiveDate, CurrencyCode currencyCode, MutualFund mutualFund) { _eventType = eventType; _currencyCode = currencyCode; EffectiveDate = effectiveDate; _mutualFund = mutualFund; }
public IMutualFundDomainEvent CreateEvent( DateTime effectiveDate, CurrencyCode currencyCode, MutualFund mutualFund) { return(new DomainEvent( this, effectiveDate, currencyCode, mutualFund)); }
public DomainEvent( MutualFundEventTypeForCreate eventType, DateTime effectiveDate, string tickerSymbol, string fundName, CurrencyCode currencyCode) { _eventType = eventType; _currencyCode = currencyCode; EffectiveDate = effectiveDate; TickerSymbol = tickerSymbol; _fundName = fundName; }
public IMutualFundDomainEvent CreateEvent( DateTime effectiveDate, string tickerSymbol, string name, CurrencyCode currencyCode) { return(new DomainEvent( this, effectiveDate, tickerSymbol, name, currencyCode)); }
public IMutualFundDomainEvent CreateEventFromJson( DateTime effectiveDate, string tickerSymbol, string json, MutualFund mutualFund) { var jObject = JObject.Parse(json); var currencyCodeToken = jObject.SelectToken("currencyCode"); var currencyCode = new CurrencyCode(currencyCodeToken.ToString()); return(new DomainEvent( this, effectiveDate, currencyCode, mutualFund)); }
public void SetCurrencyCode( CurrencyCode currencyCode) { _currencyCode = currencyCode; }