public bool IsPostSuscribed(IQuotable p) { lock (TrackedPosts) { return(TrackedPosts.Contains(p)); } }
public void UnsuscribePost(IQuotable p) { lock (TrackedPosts) { TrackedPosts.Remove(p); } }
public void SuscribePost(IQuotable p) { lock (_trackedPosts) if (!_trackedPosts.Contains(p)) { _trackedPosts.Add(p); } }
public void SuscribePost(IQuotable p) { lock (TrackedPosts) { if (!TrackedPosts.Contains(p)) { TrackedPosts.Add(p); } } }
public void Initialize() { this.quoteService = A.Fake <IQuoteService>(); this.pesoQuotable = A.Fake <PesoQuotable>(); this.dolarQuotable = A.Fake <DolarQuotable>(x => x.WithArgumentsForConstructor(new List <IQuoteService>() { this.quoteService })); this.realQuotable = A.Fake <RealQuotable>(); }
public Currency(IQuotable quote) { this.Quote = quote; }