Exemplo n.º 1
0
        public void TryDeserializeJsonObjectShouldFailGracefullyWhenAttributesTableWasNotCreatedHere()
        {
            var table = new AttributesTable
            {
                { nameof(GasStation.Id), Guid.NewGuid() },
                { nameof(GasStation.Name), "Name" },
                { nameof(GasStation.Location), null },
                { nameof(GasStation.Owner), null },
            };

            Assert.That(!table.TryDeserializeJsonObject(new JsonSerializerOptions(), out GasStation _));
        }