Exemplo n.º 1
0
        public void MapBOToModelList()
        {
            var        mapper = new BOLLocationMapper();
            BOLocation bo     = new BOLocation();

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

            response.Count.Should().Be(1);
        }
Exemplo n.º 2
0
        public void MapBOToModel()
        {
            var        mapper = new BOLLocationMapper();
            BOLocation bo     = new BOLocation();

            bo.SetProperties(1, 1, 1, "A");
            ApiLocationResponseModel response = mapper.MapBOToModel(bo);

            response.GpsLat.Should().Be(1);
            response.GpsLong.Should().Be(1);
            response.LocationId.Should().Be(1);
            response.LocationName.Should().Be("A");
        }
Exemplo n.º 3
0
        public void MapBOToModel()
        {
            var        mapper = new BOLLocationMapper();
            BOLocation bo     = new BOLocation();

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

            response.Availability.Should().Be(1);
            response.CostRate.Should().Be(1m);
            response.LocationID.Should().Be(1);
            response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.Name.Should().Be("A");
        }