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