Beispiel #1
0
        /// <summary>
        /// Spins the atom. Asks the user whether to carry on if they wish, or start from the first atom of this day.
        ///
        /// </summary>
        /// <param name="atom">Atom.</param>
        public void Play(ESTrainingAtom atom)
        {
            //TODO: If the atom isn't the very first, we should ask if the user wishes to start from the first atom, or continue from where they are
            physics = LocatePhysics(atom);
            //We start the atom, passing it our callback hook so we know when to load the next one

            physics.Initialise(atom, PostInit);
        }
Beispiel #2
0
    public void TestInitialiseWithCustomClassPresent()
    {
        ContentNode contentNode = new ContentNode();

        ESTrainingAtom atom = buildCustomAtom();

        ESAtomPhysicsInterface physics = contentNode.LocatePhysics(atom);

        physics.Initialise(atom, delegate(bool success){
            Assert.True(success);
        }); //Now we overwrite the initialised settings with mocks

        Assert.NotNull(physics);
        Assert.AreEqual("EyeSkills.ESAtomPhysicsTESTINGPHYSICS", physics.GetType().ToString());
    }