public virtual ApiInterruptionResponseModel MapBOToModel( BOInterruption boInterruption) { var model = new ApiInterruptionResponseModel(); model.SetProperties(boInterruption.Id, boInterruption.Created, boInterruption.EnvironmentId, boInterruption.JSON, boInterruption.ProjectId, boInterruption.RelatedDocumentIds, boInterruption.ResponsibleTeamIds, boInterruption.Status, boInterruption.TaskId, boInterruption.TenantId, boInterruption.Title); return(model); }
public void MapResponseToRequest() { var mapper = new ApiInterruptionModelMapper(); var model = new ApiInterruptionResponseModel(); model.SetProperties("A", DateTimeOffset.Parse("1/1/1987 12:00:00 AM"), "A", "A", "A", "A", "A", "A", "A", "A", "A"); ApiInterruptionRequestModel response = mapper.MapResponseToRequest(model); response.Created.Should().Be(DateTimeOffset.Parse("1/1/1987 12:00:00 AM")); response.EnvironmentId.Should().Be("A"); response.JSON.Should().Be("A"); response.ProjectId.Should().Be("A"); response.RelatedDocumentIds.Should().Be("A"); response.ResponsibleTeamIds.Should().Be("A"); response.Status.Should().Be("A"); response.TaskId.Should().Be("A"); response.TenantId.Should().Be("A"); response.Title.Should().Be("A"); }