Exemplo n.º 1
0
 public bool IsPostSuscribed(IQuotable p)
 {
     lock (TrackedPosts)
     {
         return(TrackedPosts.Contains(p));
     }
 }
Exemplo n.º 2
0
 public void UnsuscribePost(IQuotable p)
 {
     lock (TrackedPosts)
     {
         TrackedPosts.Remove(p);
     }
 }
Exemplo n.º 3
0
 public void SuscribePost(IQuotable p)
 {
     lock (_trackedPosts)
         if (!_trackedPosts.Contains(p))
         {
             _trackedPosts.Add(p);
         }
 }
Exemplo n.º 4
0
 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>();
 }
Exemplo n.º 6
0
 public Currency(IQuotable quote)
 {
     this.Quote = quote;
 }