/// <summary> /// Initializes static members of the <see cref="FileStoreArchiver"/> class. /// </summary> static FileStoreArchiver() { // Resolve the instance here in the static CTOR to guarantee // thread safety. using (IKernel kernel = new StandardKernel(new NinjectMappings())) { InstanceRef = kernel.Get<IFileStoreArchiver>(); } }
public void TestSetup() { _configurationManagerMock = new Mock<IFsaConfigurationManager>(); _fsaWorkerProviderMock = new Mock<IFsaWorkerProvider>(); _fsaLoggerMock = new Mock<IFsaLogger>(); _fileStoreArchiver = new FileStoreArchiver( _configurationManagerMock.Object, _fsaLoggerMock.Object, _fsaWorkerProviderMock.Object); }
public void RunFsa_NoConfigurationManager_DebugAssertFailure() { // Overwrite what we set in the TestInitialize method. _fileStoreArchiver = new FileStoreArchiver(null, _fsaLoggerMock.Object, _fsaWorkerProviderMock.Object); _fileStoreArchiver.RunFsa(); }
public void Setup() { _fileStoreArchiver = FileStoreArchiver.Instance; }