Beispiel #1
0
 public MasterTradingAgreementBuilder()
 {
     Set(x => x.Name, Any.Company.Name);
     Set(x => x.Type, MasterTradingAgreementType.Mra);
     Set(x => x.Duration, new DateRangeBuilder());
     Set(x => x.Counterparty, StaticData.Company);
     WithContractSchedules(ContractScheduleBuilder.CreateDefaultList());
 }
Beispiel #2
0
        public static ListBuilder <MasterTradingAgreement, MasterTradingAgreementBuilder> CreateDefaultList(int size = 3, bool isNew = true, bool persistRelatives = false)
        {
            var builder = CreateListOfSize(size)
                          .All()
                          .Set(x => x.Id, SequenceOf.Keys(size, isNew).Next)
                          .Set(x => x.ContractSchedules, ContractScheduleBuilder.CreateDefaultList(size, isNew).BuildList().ToList());

            return(builder.ListBuilder);
        }