Exemple #1
0
        public void MapEntityToModel()
        {
            var            mapper = new DALCallAssignmentMapper();
            CallAssignment item   = new CallAssignment();

            item.SetProperties(1, 1, 1);
            ApiCallAssignmentServerResponseModel response = mapper.MapEntityToModel(item);

            response.CallId.Should().Be(1);
            response.Id.Should().Be(1);
            response.UnitId.Should().Be(1);
        }
Exemple #2
0
        public void MapEntityToModelList()
        {
            var            mapper = new DALCallAssignmentMapper();
            CallAssignment item   = new CallAssignment();

            item.SetProperties(1, 1, 1);
            List <ApiCallAssignmentServerResponseModel> response = mapper.MapEntityToModel(new List <CallAssignment>()
            {
                { item }
            });

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