Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpmorris authored and shomavg committed Dec 5, 2019
1 parent 81870d6 commit eea8294
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,6 @@ namespace Esfa.Recruit.UnitTests.Employer.Web.Orchestrators.CloneVacancyOrchestr
{
public class GetCloneVacancyDatesQuestionViewModelAsyncTests : CloneVacancyOrchestratorTestBase
{
[Fact]
public async Task WhenStatusIsClosed_ThenThrowInvalidStateException()
{
var vacancy = SourceVacancy;
vacancy.Status = VacancyStatus.Closed;

var sut = GetSut(vacancy);

await Assert.ThrowsAsync<InvalidStateException>(() => sut.GetCloneVacancyDatesQuestionViewModelAsync(VRM));
}

[Fact]
public async Task WhenClosingDateIsInPast_ThenThrowInvalidStateException()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ namespace Esfa.Recruit.UnitTests.Employer.Web.Orchestrators.CloneVacancyOrchestr
{
public class IsNewDatesRequiredTests : CloneVacancyOrchestratorTestBase
{
[Fact]
public void WhenStatusIsClosed_ThenReturnTrue()
{
var sut = GetSut(SourceVacancy);
var vacancy = new Vacancy{Status = VacancyStatus.Closed};
sut.IsNewDatesRequired(vacancy).Should().BeTrue();
}

[Fact]
public void WhenStatusIsLiveAndDatesAreInFuture_ThenReturnFalse()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,6 @@ namespace Esfa.Recruit.UnitTests.Provider.Web.Orchestrators.CloneVacancyOrchestr
{
public class GetCloneVacancyDatesQuestionViewModelAsyncTests : CloneVacancyOrchestratorTestBase
{
[Fact]
public async Task WhenStatusIsClosed_ThenThrowInvalidStateException()
{
var vacancy = SourceVacancy;
vacancy.Status = VacancyStatus.Closed;

var sut = GetSut(vacancy);

await Assert.ThrowsAsync<InvalidStateException>(() => sut.GetCloneVacancyDatesQuestionViewModelAsync(VRM));
}

[Fact]
public async Task WhenClosingDateIsInPast_ThenThrowInvalidStateException()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ namespace Esfa.Recruit.UnitTests.Provider.Web.Orchestrators.CloneVacancyOrchestr
{
public class IsNewDatesRequiredTests : CloneVacancyOrchestratorTestBase
{
[Fact]
public void WhenStatusIsClosed_ThenReturnTrue()
{
var sut = GetSut(SourceVacancy);
var vacancy = new Vacancy{Status = VacancyStatus.Closed};
sut.IsNewDatesRequired(vacancy).Should().BeTrue();
}

[Fact]
public void WhenStatusIsLiveAndDatesAreInFuture_ThenReturnFalse()
{
Expand Down

0 comments on commit eea8294

Please sign in to comment.