public void Process_IsNotRestored_DontRestore([Frozen] IMongoRestoreService mongoRestoreService, [Greedy] MongoRestoreProcessor sut)
 {
     //Arrange
     mongoRestoreService.IsRestored(Arg.Is("analytics")).Returns(false);
     //Act
     sut.Process(null);
     //Assert
     mongoRestoreService.Received().RestoreDatabases();
 }
Beispiel #2
0
 public void Process_IsNotRestored_RebuildIndex([Frozen] IMongoRestoreService mongoRestoreService, [Greedy] MongoRestoreProcessor sut)
 {
     //Arrange
     mongoRestoreService.IsRestored(Arg.Is("analytics")).Returns(false);
     //Act
     sut.Process(null);
     //Assert
     mongoRestoreService.Received().StartRebuildAnalyticsIndexJob();
 }