Esempio n. 1
0
        public void MapBOToModel()
        {
            var mapper = new BOLColumnSameAsFKTableMapper();
            BOColumnSameAsFKTable bo = new BOColumnSameAsFKTable();

            bo.SetProperties(1, 1, 1);
            ApiColumnSameAsFKTableResponseModel response = mapper.MapBOToModel(bo);

            response.Id.Should().Be(1);
            response.Person.Should().Be(1);
            response.PersonId.Should().Be(1);
        }
Esempio n. 2
0
        public void MapBOToModelList()
        {
            var mapper = new BOLColumnSameAsFKTableMapper();
            BOColumnSameAsFKTable bo = new BOColumnSameAsFKTable();

            bo.SetProperties(1, 1, 1);
            List <ApiColumnSameAsFKTableResponseModel> response = mapper.MapBOToModel(new List <BOColumnSameAsFKTable>()
            {
                { bo }
            });

            response.Count.Should().Be(1);
        }
Esempio n. 3
0
        public void MapBOToEF()
        {
            var mapper = new DALColumnSameAsFKTableMapper();
            var bo     = new BOColumnSameAsFKTable();

            bo.SetProperties(1, 1, 1);

            ColumnSameAsFKTable response = mapper.MapBOToEF(bo);

            response.Id.Should().Be(1);
            response.Person.Should().Be(1);
            response.PersonId.Should().Be(1);
        }