Ejemplo n.º 1
0
        public void MapBOToModel()
        {
            var     mapper = new BOLMutexMapper();
            BOMutex bo     = new BOMutex();

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

            response.Id.Should().Be("A");
            response.JSON.Should().Be("A");
        }
Ejemplo n.º 2
0
        public void MapBOToEF()
        {
            var mapper = new DALMutexMapper();
            var bo     = new BOMutex();

            bo.SetProperties("A", "A");

            Mutex response = mapper.MapBOToEF(bo);

            response.Id.Should().Be("A");
            response.JSON.Should().Be("A");
        }
Ejemplo n.º 3
0
        public void MapBOToModelList()
        {
            var     mapper = new BOLMutexMapper();
            BOMutex bo     = new BOMutex();

            bo.SetProperties("A", "A");
            List <ApiMutexResponseModel> response = mapper.MapBOToModel(new List <BOMutex>()
            {
                { bo }
            });

            response.Count.Should().Be(1);
        }