public void Setup() { TestContext currentContext = TestContext.CurrentContext; Console.Out.WriteLine("==================================="); Console.Out.WriteLine("BEGIN TEST {0}", currentContext.Test.Name); Console.Out.WriteLine("==================================="); _train2groundClientMock = new Mock <IT2GManager>(); _notificationSender = new NotificationSenderStub(true); _sessionManager = new SessionManager(); Assert.AreEqual(string.Empty, _sessionManager.RemoveAllSessions(), "Cannot remove all sessions in session database"); }
public void Setup() { TestContext currentContext = TestContext.CurrentContext; Console.Out.WriteLine("==================================="); Console.Out.WriteLine("BEGIN TEST {0}", currentContext.Test.Name); Console.Out.WriteLine("==================================="); _notificationsSender = new NotificationSenderStub(true); _remoteDataStoreFactoryMock = new Mock <IRemoteDataStoreFactory>(); _dataStoreServiceStub = new RemoteDataStoreServiceStub(); _remoteDataStoreFactoryMock.Setup(f => f.GetRemoteDataStoreInstance()).Returns(_dataStoreServiceStub.Interface); HistoryLogger.EmptyDatabase(); }