Esempio n. 1
0
        public void ShouldGetNextLegacyApplicationIds()
        {
            // Arrange.
            var repository = new ReferenceNumberRepository(_connection);

            // Act.
            var firstLegacyApplicationId  = repository.GetNextLegacyApplicationId();
            var secondLegacyApplicationId = repository.GetNextLegacyApplicationId();

            // Assert.
            firstLegacyApplicationId.Should().BePositive();
            secondLegacyApplicationId.Should().BeGreaterThan(firstLegacyApplicationId);
        }
Esempio n. 2
0
        public void ShouldGetNextVacancyReferenceNumbers()
        {
            // Arrange.
            var repository = new ReferenceNumberRepository(_connection);

            // Act.
            var firstReferenceNumber  = repository.GetNextVacancyReferenceNumber();
            var secondReferenceNumber = repository.GetNextVacancyReferenceNumber();

            // Assert.
            firstReferenceNumber.Should().BePositive();
            secondReferenceNumber.Should().BeGreaterThan(firstReferenceNumber);
        }