コード例 #1
0
        public void MapBOToModelList()
        {
            var            mapper = new BOLInterruptionMapper();
            BOInterruption bo     = new BOInterruption();

            bo.SetProperties("A", DateTimeOffset.Parse("1/1/1987 12:00:00 AM"), "A", "A", "A", "A", "A", "A", "A", "A", "A");
            List <ApiInterruptionResponseModel> response = mapper.MapBOToModel(new List <BOInterruption>()
            {
                { bo }
            });

            response.Count.Should().Be(1);
        }
コード例 #2
0
        public void MapBOToModel()
        {
            var            mapper = new BOLInterruptionMapper();
            BOInterruption bo     = new BOInterruption();

            bo.SetProperties("A", DateTimeOffset.Parse("1/1/1987 12:00:00 AM"), "A", "A", "A", "A", "A", "A", "A", "A", "A");
            ApiInterruptionResponseModel response = mapper.MapBOToModel(bo);

            response.Created.Should().Be(DateTimeOffset.Parse("1/1/1987 12:00:00 AM"));
            response.EnvironmentId.Should().Be("A");
            response.Id.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");
        }