Beispiel #1
0
        public HALEmbedded WithEmbededState(IEmbededState embededState)
        {
            var embeddeds = new List <Embedded>();
            var embedded  = new Embedded(embededState.ResourceName);

            foreach (var embededStateState in embededState.States)
            {
                embedded.WithResource(EmbeddedResource.New(embededStateState.GetState())
                                      .WithLinkObjects(embededStateState.LinkObjects));
            }
            embeddeds.Add(embedded);
            _hal.WithEmbeddeds(embeddeds);
            return(this);
        }
Beispiel #2
0
 public HAL WithEmbedded(Embedded embedded)
 {
     embeddeds.Add(embedded);
     return(this);
 }