Пример #1
0
        public void MapBOToModelList()
        {
            var mapper          = new BOLAWBuildVersionMapper();
            BOAWBuildVersion bo = new BOAWBuildVersion();

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

            response.Count.Should().Be(1);
        }
Пример #2
0
        public void MapBOToModel()
        {
            var mapper          = new BOLAWBuildVersionMapper();
            BOAWBuildVersion bo = new BOAWBuildVersion();

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

            response.Database_Version.Should().Be("A");
            response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.SystemInformationID.Should().Be(1);
            response.VersionDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
        }