Exemplo n.º 1
0
        public void SetUp()
        {
            _instance = Builder <PlanReceiptOrder> .CreateNew()
                        .WithConstructor(() => new PlanReceiptOrder(100))
                        .With(x => x.PlanCertificates, Builder <PlanCertificate> .CreateListOfSize(1).Build())
                        .Build();

            _instance.PlanCertificates[0].PlanReceiptOrder = _instance;

            _copyContext = new CopyContext <PlanReceiptOrder>();
            _copyContext.SetSourceValue(_instance);
        }