Ejemplo n.º 1
0
 public void TearDown()
 {
     if (HistoryLogger.EmptyDatabase() != ResultCodeEnum.RequestAccepted)
     {
         throw new Exception("Cannot empty the history database");
     }
 }
Ejemplo n.º 2
0
        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();
        }