Beispiel #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");
        }
Beispiel #2
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);
        }