public RecordChangedNotifier(IMessageDispatcher dispatcher, IMxEntityConfig mxEntityConfig, IEqualityComparer <HostMxRecord> comparer, ILogger <RecordChangedNotifier> logger)
 {
     _dispatcher     = dispatcher;
     _mxEntityConfig = mxEntityConfig;
     _comparer       = comparer;
     _logger         = logger;
 }
 public void SetUp()
 {
     _dispatcher            = A.Fake <IMessageDispatcher>();
     _mxEntityConfig        = A.Fake <IMxEntityConfig>();
     _logger                = A.Fake <ILogger <RecordChangedNotifier> >();
     _recordChangedNotifier = new RecordChangedNotifier(_dispatcher, _mxEntityConfig, new RecordEqualityComparer(), _logger);
 }
Ejemplo n.º 3
0
        public void SetUp()
        {
            _dao                      = A.Fake <IMxEntityDao>();
            _log                      = A.Fake <ILogger <MxEntity> >();
            _clock                    = A.Fake <IClock>();
            _mxEntityConfig           = A.Fake <IMxEntityConfig>();
            _dispatcher               = A.Fake <IMessageDispatcher>();
            _changeNotifiersComposite = A.Fake <IChangeNotifiersComposite>();

            _mxEntity = new MxEntity(_dao, _mxEntityConfig, _dispatcher, _changeNotifiersComposite, _clock, _log);
        }
 public MxEntity(IMxEntityDao dao,
                 IMxEntityConfig mxEntityConfig,
                 IMessageDispatcher dispatcher,
                 IChangeNotifiersComposite changeNotifiersComposite,
                 IClock clock,
                 ILogger <MxEntity> log)
 {
     _dao                      = dao;
     _log                      = log;
     _clock                    = clock;
     _mxEntityConfig           = mxEntityConfig;
     _dispatcher               = dispatcher;
     _changeNotifiersComposite = changeNotifiersComposite;
 }