public void CanBeConstructed() { //Arrange DimensionValueAttributeDto sut; //Act sut = new DimensionValueAttributeDto(); //Assert Assert.NotNull(sut); }
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)); }