public AllPropertyTypesCompactResponse()
 {
     StringField          = DateTime.Now.ToFileTime().ToString();
     MultilineStringField = (DateTime.Now.ToFileTime().ToString() + "\n").ReplicateString(10);
     EnumPicklist         = AllPropertyTypesCompactEnum.Option100;
     EnumMultiselect      = new[] { AllPropertyTypesCompactEnum.Option1, AllPropertyTypesCompactEnum.Option100 };
     Integer          = 100;
     Boolean          = true;
     Date             = DateTime.Now;
     LookupField      = FakeRecordService.Get().ToLookupWithAltDisplayNameName(FakeRecordService.Get().GetFirst(FakeConstants.RecordType));
     MultiLookupField = FakeRecordService.Get().ToLookupWithAltDisplayNameName(FakeRecordService.Get().GetFirst(FakeConstants.RecordType));
     Decimal          = 200;
     Password         = new Password("Fake", false, true);
     Folder           = new Folder(CoreTest.TestingFolder);
     Double           = 300;
     RecordType       = new RecordType(FakeConstants.RecordType, FakeConstants.RecordType);
     Field            = new RecordField(FakeConstants.LookupField, FakeConstants.LookupField);
     BigInt           = 500;
     Hyperlink        = new Url("http://www.google.com", "Google");
     SettingsLookup   = TestSettingsTypeCompact.Create().Items.First();
     CsvFile          = new FileReference(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "TestCsv.csv"));
 }
Example #2
0
 public override void RegisterTypes()
 {
     base.RegisterTypes();
     RegisterInstance(TestSettingsTypeCompact.Create());
 }