public void MapModelToEntity()
        {
            var mapper = new DALOffCapabilityMapper();
            ApiOffCapabilityServerRequestModel model = new ApiOffCapabilityServerRequestModel();

            model.SetProperties("A");
            OffCapability response = mapper.MapModelToEntity(1, model);

            response.Name.Should().Be("A");
        }
        public void MapEntityToModel()
        {
            var           mapper = new DALOffCapabilityMapper();
            OffCapability item   = new OffCapability();

            item.SetProperties(1, "A");
            ApiOffCapabilityServerResponseModel response = mapper.MapEntityToModel(item);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
        public void MapEntityToModelList()
        {
            var           mapper = new DALOffCapabilityMapper();
            OffCapability item   = new OffCapability();

            item.SetProperties(1, "A");
            List <ApiOffCapabilityServerResponseModel> response = mapper.MapEntityToModel(new List <OffCapability>()
            {
                { item }
            });

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