Ejemplo n.º 1
0
 public void DoSetup()
 {
     mFactory = new Factory(new DefaultModuleConfiguration(), new ITModuleConfiguration());
       mObserver = (RecordingObserver)mFactory.Build<IMessageObserver>();
       mApp = mFactory.Build<IApp>();
       mFile = new DotNetFile();
 }
Ejemplo n.º 2
0
 public void DoSetup()
 {
     mFactory = new Factory(new DefaultModuleConfiguration(), new ITModuleConfiguration());
       mObserver = (RecordingObserver)mFactory.Build<IMessageObserver>();
       mApp = mFactory.Build<IApp>();
       mFile = new DotNetFile();
       mApp.Execute("setCredentials", "val1", "val2");
 }
Ejemplo n.º 3
0
        public void Setup()
        {
            mFactory = new Factory(new DefaultModuleConfiguration(), new ITModuleConfiguration());
              mObserver = (RecordingObserver)mFactory.Build<IMessageObserver>();
              mApp = mFactory.Build<IApp>();
              mFile = new DotNetFile();
              mRefreshToken = new RefreshTokenStore(mFile, "refreshToken.txt");
              mCredentials = new CredentialStore(mFile, "credentials.txt");

              var provider = new TestConfigurationProvider();
              provider.SetupCredentialsFile();
              provider.SetupRefreshTokenFile();
              provider.SetupDummyFile();

              mFileManager = new GDriveFileManager(mCredentials.Get(), mRefreshToken.Get());
              new Retry(30, 125)
            .WithWork(x => {
              mFileManager.CleanGDriveAcct();
              Assert.That(mFileManager.ListAllFilesOnRootById().ToArray(), Is.Empty);
            })
            .Start();

              mFolderManager = new FolderManager(mCredentials.Get(), mRefreshToken.Get());
        }