Beispiel #1
0
        public static TimelineDomain GenerateDomain()
        {
            TimelineDomain domain = new TimelineDomain();

            domain.SetId("namesapce id");
            domain.SetDescription("domain description");
            domain.SetOwner("domain owner");
            domain.SetReaders("domain_reader");
            domain.SetWriters("domain_writer");
            domain.SetCreatedTime(0L);
            domain.SetModifiedTime(1L);
            return(domain);
        }
Beispiel #2
0
        private static TimelineDomain CreateTimelineDomain(string id, string description,
                                                           string owner, string readers, string writers, long createdTime, long modifiedTime
                                                           )
        {
            TimelineDomain domainToStore = new TimelineDomain();

            domainToStore.SetId(id);
            domainToStore.SetDescription(description);
            domainToStore.SetOwner(owner);
            domainToStore.SetReaders(readers);
            domainToStore.SetWriters(writers);
            domainToStore.SetCreatedTime(createdTime);
            domainToStore.SetModifiedTime(modifiedTime);
            return(domainToStore);
        }