コード例 #1
0
 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();
 }
コード例 #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();
 }