Ejemplo n.º 1
0
        public void MapModelToBO()
        {
            var mapper = new BOLTagSetMapper();
            ApiTagSetRequestModel model = new ApiTagSetRequestModel();

            model.SetProperties(BitConverter.GetBytes(1), "A", "A", 1);
            BOTagSet response = mapper.MapModelToBO("A", model);

            response.DataVersion.Should().BeEquivalentTo(BitConverter.GetBytes(1));
            response.JSON.Should().Be("A");
            response.Name.Should().Be("A");
            response.SortOrder.Should().Be(1);
        }