public NancyRazorProjectScopeProvider()
 {
     Creators.AddRange(new List <Func <string, ITemplateScopePoint> >
     {
         TryToCreate <InAnyRazorProject>
     });
 }
Exemple #2
0
 internal override void parse(string str, ref int pos, ReleaseVersion release, int len, ConcurrentDictionary <int, BaseClassIfc> dictionary)
 {
     base.parse(str, ref pos, release, len, dictionary);
     if (release < ReleaseVersion.IFC4)
     {
         mIdentification = ParserSTEP.StripString(str, ref pos, len);
         mSSCreationDate = ParserSTEP.StripLink(str, ref pos, len);
         Creators.AddRange(ParserSTEP.StripListLink(str, ref pos, len).ConvertAll(x => dictionary[x] as IfcPerson));
         mPurpose      = ParserSTEP.StripString(str, ref pos, len);
         mSSDuration   = ParserSTEP.StripDouble(str, ref pos, len);
         mSSTotalFloat = ParserSTEP.StripDouble(str, ref pos, len);
         mSSStartTime  = ParserSTEP.StripLink(str, ref pos, len);
         mSSFinishTime = ParserSTEP.StripLink(str, ref pos, len);
         string s = ParserSTEP.StripField(str, ref pos, len);
         if (s.StartsWith("."))
         {
             Enum.TryParse <IfcWorkControlTypeEnum>(s.Replace(".", ""), true, out mWorkControlType);
         }
         mUserDefinedControlType = ParserSTEP.StripString(str, ref pos, len);
     }
     else
     {
         mCreationDate = IfcDateTime.ParseSTEP(ParserSTEP.StripField(str, ref pos, len));
         Creators.AddRange(ParserSTEP.StripListLink(str, ref pos, len).ConvertAll(x => dictionary[x] as IfcPerson));
         mPurpose    = ParserSTEP.StripString(str, ref pos, len);
         mDuration   = ParserSTEP.StripString(str, ref pos, len);
         mTotalFloat = ParserSTEP.StripString(str, ref pos, len);
         mStartTime  = IfcDateTime.ParseSTEP(ParserSTEP.StripField(str, ref pos, len));
         mFinishTime = IfcDateTime.ParseSTEP(ParserSTEP.StripField(str, ref pos, len));
     }
 }
Exemple #3
0
 protected IfcWorkControl(DatabaseIfc db, IfcWorkControl c, DuplicateOptions options) : base(db, c, options)
 {
     mCreationDate = c.mCreationDate;
     Creators.AddRange(c.mCreators.ConvertAll(x => db.Factory.Duplicate(x) as IfcPerson));
     mDuration   = c.mDuration;
     mTotalFloat = c.mTotalFloat;
     mStartTime  = c.mStartTime;
     mFinishTime = c.mFinishTime;
 }
Exemple #4
0
 protected IfcWorkControl(DatabaseIfc db, IfcWorkControl c, IfcOwnerHistory ownerHistory, bool downStream) : base(db, c, ownerHistory, downStream)
 {
     mCreationDate = c.mCreationDate;
     Creators.AddRange(c.mCreators.ConvertAll(x => db.Factory.Duplicate(x) as IfcPerson));
     mDuration   = c.mDuration;
     mTotalFloat = c.mTotalFloat;
     mStartTime  = c.mStartTime;
     mFinishTime = c.mFinishTime;
 }
Exemple #5
0
        public Seed()
        {
            var defaultSongbook = new SongbookDto()
            {
                Id        = new Guid("21924d66-dac6-43a5-beee-206de4d35216"),
                Title     = "Psalms, Hymns, and Spiritual Songs",
                ISBN10    = "1584273526",
                ISBN13    = "9781584273523",
                Publisher = "Sumphonia Productions LLD (2012)"
            };

            var defaultSongbookCreators = new List <CreatorDto>()
            {
                new CreatorDto()
                {
                    Id = new Guid("fdfba83c-08aa-42a4-b1c1-46b8e154f297"), ParentId = defaultSongbook.Id, FirstName = "David", LastName = "Maravilla", ParentTypeId = (int)CreativeType.Editor, TypeId = (int)CreatorParentType.Songbook
                },
                new CreatorDto()
                {
                    Id = new Guid("e2495b99-9fd0-4be6-b2db-893ce69a6f38"), ParentId = defaultSongbook.Id, FirstName = "Matt", LastName = "Bassford", ParentTypeId = (int)CreativeType.TechnicalEditor, TypeId = (int)CreatorParentType.Songbook
                }
            };

            var defaultSong = new SongDto()
            {
                Id            = new Guid("6767f7f5-0dc9-4b78-a0f0-e450e4b60889"),
                SongbookId    = defaultSongbook.Id,
                Title         = "Nearer, My God, to Thee",
                SongNumber    = 328,
                Key           = "G",
                SolfaTypeId   = (int)SolfaType.Mi,
                TimeSignature = "4/4",
                Tune          = "Bethany"
            };

            var defaultSongCreator = new CreatorDto()
            {
                Id = new Guid("d3788116-90f7-40d4-9a82-a3cef6e769df"), ParentId = defaultSong.Id, FirstName = "Sarah Flower", LastName = "Adams", ParentTypeId = (int)CreativeType.Writer, TypeId = (int)CreatorParentType.Song
            };

            Songbooks.Add(defaultSongbook);
            Songs.Add(defaultSong);
            Creators.AddRange(defaultSongbookCreators);
            Creators.Add(defaultSongCreator);
        }