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); }
public void Run() { using (new CommunicationManager(notificationService)) using (engine) { var initialScene = new DefaultScenes().Rainbow; newSceneProcessor.Process(initialScene); while (true) { Thread.Sleep(10 * 1000); } } }
public SceneAccessor(DefaultScenes defaultScenes) { this.defaultScenes = defaultScenes; }