예제 #1
0
        public Task Execute(TestContext context)
        {
            var service = context.Service;

            service.Stop();
            return(StateChangedTask.Observe(service, PlayerState.Idle, context.Token, context.Timeout));
        }
예제 #2
0
        public Task Execute(TestContext context)
        {
            var service   = context.Service;
            var clipTitle = context.ClipTitle;

            var clips = service.ReadClips();
            var clip  = clips.Find(_ => _.Title.Equals(clipTitle));

            Assert.That(clip, Is.Not.Null);

            service.SetSource(clip);

            return(StateChangedTask.Observe(service, PlayerState.Prepared, context.Token, context.Timeout));
        }