コード例 #1
0
        public void DefaultScenesAreValid()
        {
            var scenes = new DefaultScenes()
            .GetType()
            .GetProperties()
            .Where(property => property.GetCustomAttribute<SceneNameAttribute>() != null)
            .Select(property => property.GetValue(new DefaultScenes()) as amBXScene)
            .ToList();

              Assert.IsNotEmpty(scenes);
        }
コード例 #2
0
        public void Run()
        {
            using (new CommunicationManager(notificationService))
              using (engine)
              {
            var initialScene = new DefaultScenes().Rainbow;
            newSceneProcessor.Process(initialScene);

            while (true)
            {
              Thread.Sleep(10 * 1000);
            }
              }
        }
コード例 #3
0
 public SceneAccessor(DefaultScenes defaultScenes)
 {
     this.defaultScenes = defaultScenes;
 }