Esempio n. 1
0
        public void CanBeConstructed()
        {
            //Arrange
            DimensionValueAttributeDto sut;

            //Act
            sut = new DimensionValueAttributeDto();

            //Assert
            Assert.NotNull(sut);
        }
Esempio n. 2
0
        public void CanBeSerialized()
        {
            //Arrange
            var sut = new DimensionValueAttributeDto()
            {
                Attributes = new Dictionary <string, string>(),
                Value      = "foo"
            };

            //Act
            var payload = JsonSerializer.Serialize(sut, new JsonSerializerOptions {
                IgnoreNullValues = true
            });

            //Assert
            Assert.NotNull(JsonDocument.Parse(payload));
        }