Fix Default value (#19)

This commit is contained in:
Stef Heyenrath
2021-07-31 20:10:46 +02:00
committed by GitHub
parent 0802766c66
commit a1d23422dc
9 changed files with 137 additions and 113 deletions
@@ -1,8 +1,7 @@
using System;
using AutoMapper;
using System;
using System.Collections.Generic;
using System.Text.Json;
using AutoMapper;
using Microsoft.CodeAnalysis;
namespace ProxyInterfaceConsumer
{
@@ -33,6 +32,9 @@ namespace ProxyInterfaceConsumer
IPerson p = new PersonProxy(new Person());
p.Name = "test";
Console.WriteLine("DefaultValue " + p.DefaultValue());
Console.WriteLine("DefaultValue " + p.DefaultValue(42));
var ap = new AddressProxy(new Address { HouseNumber = 42 });
p.Address = ap;
var add = p.AddAddress(ap);