Ejemplo n.º 1
0
 public HistoryLogAgentTest()
 {
     m_mockRemoteLocationProvider = new Mock <IRemoteLocationProvider>(MockBehavior.Strict);
     m_mockRemoteLocationProvider.Setup(provider => provider.RemoteLocation).Returns(RemoteLocation.Localhost);
     m_historyLogQueue = new HistoryLogQueue();
     m_historyLogAgent = new HistoryLogAgent(m_mockRemoteLocationProvider.Object, m_historyLogQueue);
 }
Ejemplo n.º 2
0
 public HistoryLogWorkItem(string unitOfWorkName,
                           IHistoryLogRepository historyLogRepository,
                           HistoryLogQueue historyLogQueue)
 {
     m_unitOfWorkName       = unitOfWorkName;
     m_historyLogRepository = historyLogRepository;
     m_historyLogQueue      = historyLogQueue;
 }
Ejemplo n.º 3
0
 public HistoryLogWorkItemTest()
 {
     m_mockDependencyResolver = new Mock <IDependencyResolver>(MockBehavior.Strict);
     m_mockDependencyResolver
     .Setup(resolver => resolver.Dispose());
     DependencyResolver.InitializeWith(m_mockDependencyResolver.Object);
     m_mockHistoryLogRepository = new Mock <IHistoryLogRepository>(MockBehavior.Strict);
     m_mockUnitOfWork           = new Mock <IUnitOfWork>(MockBehavior.Strict);
     m_historyLogQueue          = new HistoryLogQueue();
     m_workItem = new HistoryLogWorkItem("MyUnitOfWork", m_mockHistoryLogRepository.Object, m_historyLogQueue);
 }
Ejemplo n.º 4
0
 public HistoryLogAgent(IRemoteLocationProvider remoteLocationProvider,
                        HistoryLogQueue historyLogQueue)
 {
     m_remoteLocationProvider = remoteLocationProvider;
     m_historyLogQueue        = historyLogQueue;
 }
Ejemplo n.º 5
0
 public HistoryLogQueueTest()
 {
     m_queue = new HistoryLogQueue();
 }