public SpaceshipEntity GetSpaceshipEntity()
        {
            SpaceshipEntity spaceship = new SpaceshipEntity
            {
                Name   = "Boston dynamics(dummy name)",
                Image  = new byte[20, 20],
                Active = true,
                Height = 22,
                Mass   = 21000
            };

            return(spaceship);
        }
Ejemplo n.º 2
0
        private async Task GetSpaceship(ArticleEntity article)
        {
            SpaceshipEntity spaceship = await SpaceshipsGateway.GetRandomSpaceship();

            article.Spaceship = spaceship;
        }