public void DatabaseSimulatorShouldBeAbleToSetItsVersion() { var testSubject = new DatabaseLocalMemory(); testSubject.SetCurrentVersionTo(33).Wait(); testSubject.CurrentVersion.Result.Should().Be(33); }
public void ShouldChooseToGoFromDatabaseCurrentVersionToTarget() { var database = new DatabaseLocalMemory(); database.SetCurrentVersionTo(33); Target.FigureOutTheGoal(database, -9).Should().BeEquivalentTo(new { CurrentVersion = 33, TargetVersion = -9 }, options => options.ExcludingMissingMembers()); }