Beispiel #1
0
        public void MapBOToModelList()
        {
            var             mapper = new BOLMachinePolicyMapper();
            BOMachinePolicy bo     = new BOMachinePolicy();

            bo.SetProperties("A", true, "A", "A");
            List <ApiMachinePolicyResponseModel> response = mapper.MapBOToModel(new List <BOMachinePolicy>()
            {
                { bo }
            });

            response.Count.Should().Be(1);
        }
Beispiel #2
0
        public void MapBOToModel()
        {
            var             mapper = new BOLMachinePolicyMapper();
            BOMachinePolicy bo     = new BOMachinePolicy();

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

            response.Id.Should().Be("A");
            response.IsDefault.Should().Be(true);
            response.JSON.Should().Be("A");
            response.Name.Should().Be("A");
        }