示例#1
0
        public void DatabaseSimulatorShouldBeAbleToSetItsVersion()
        {
            var testSubject = new DatabaseLocalMemory();

            testSubject.SetCurrentVersionTo(33).Wait();
            testSubject.CurrentVersion.Result.Should().Be(33);
        }
示例#2
0
        public void ShouldChooseToGoFromDatabaseCurrentVersionToTarget()
        {
            var database = new DatabaseLocalMemory();

            database.SetCurrentVersionTo(33);
            Target.FigureOutTheGoal(database, -9).Should().BeEquivalentTo(new { CurrentVersion = 33, TargetVersion = -9 },
                                                                          options => options.ExcludingMissingMembers());
        }