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(); }
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(); }