public void Status_ShouldReturnNullIfNullPassed() { // Arrange // Act var v1Status = SubmissionStatusConverters.ConvertToLegacy(null); // Assert v1Status.Should().BeNull(); }
public void Status_ShouldCorrectlyMapV2Status(V2Status v2Status) { // Arrange // Act var v1Status = SubmissionStatusConverters.ConvertToLegacy(v2Status); // Assert v1Status.ToString().Should().Be(v2Status.ToString()); }
public void SubmissionFilter_ShouldCorrectlyMapV1SubmissionFilter() { // Arrange var v2SubmissionFilter = new SubmissionFilter { InputFilename = "testvalue", Retrieved = true, Status = SubmissionStatus.COMPLETE }; var v1ExpectedStatus = SubmissionStatusConverters.ConvertToLegacy(v2SubmissionFilter.Status); // Act var v1SubmissionFilter = SubmissionFilterConverters.ConvertToLegacy(v2SubmissionFilter); // Assert v1SubmissionFilter.InputFilename.Should().Be(v2SubmissionFilter.InputFilename); v1SubmissionFilter.Retrieved.Should().Be(v2SubmissionFilter.Retrieved); v1SubmissionFilter.Status.Should().Be(v1ExpectedStatus); v1SubmissionFilter.AND.Should().BeNull(); v1SubmissionFilter.OR.Should().BeNull(); }