public DealService(IDealWriter writer, IDealReader reader) { if (writer == null) { throw new ArgumentNullException(nameof(writer)); } if (reader == null) { throw new ArgumentNullException(nameof(reader)); } _writer = writer; _reader = reader; }
public DealCaching(IDealReader reader, IDealWriter writer) { _reader = reader; _writer = writer; _cache = ImmutableDictionary<string, Maybe<Deal>>.Empty; }
public DealCaching(IDealReader reader, IDealWriter writer) { _reader = reader; _writer = writer; _cache = ImmutableDictionary <string, Maybe <Deal> > .Empty; }
public DealServiceLogger(IDealReader reader, IDealWriter writer) { _reader = reader; _writer = writer; }