Ejemplo n.º 1
0
        public void testPlayGame()
        {
            var controller = new FixtureController();
            var _target    = controller.PlayGame(null);

            // Assert.AreEqual("fixture", _target.ViewName);
            _target.Equals(new HttpStatusCodeResult(HttpStatusCode.OK));
        }
Ejemplo n.º 2
0
        private void FadeVertical(FixtureController controller, IEnumerable <Fixture> fixtures)
        {
            var    fixture_array = fixtures.ToArray();
            ushort count         = (ushort)fixtures.Count();

            for (ushort i = 0; i < count; i++)
            {
                int level   = 100 * (count - i) / count;
                var fixture = fixture_array[i];

                controller.setFixtureLevel(fixture, (ushort)level);
            }
        }
Ejemplo n.º 3
0
 public fixture_overrides_for_paragraphs()
 {
     Directory.CreateDirectory(theFixtureDirectory);
     theController = new FixtureController(theClient, new StubFixtureFileWatcher());
     theController.StartWatching(theFixtureDirectory);
 }
Ejemplo n.º 4
0
 public FixtureControllerTester()
 {
     Directory.CreateDirectory(theFixtureDirectory);
     theController = new FixtureController(theClient, new StubFixtureFileWatcher());
     theController.StartWatching(theFixtureDirectory);
 }
 public void SetUp()
 {
     context    = new MockDreamLeagueContext();
     controller = new FixtureController(context.MockContext.Object);
 }