Example #1
0
        public void SetUp()
        {
            SignalBusInstaller.Install(Container);
            Container.DeclareSignal <TileMerged>();
            Container.BindFactory <int, Cell, Tile, Tile.Factory>();
            Container.Bind <TileRegistry>().AsSingle();
            Container.BindFactory <int, int, Cell, Cell.Factory>();
            Container.Bind <Grid>().AsSingle().WithArguments(_gridSize);

            Container.Bind <TileMoveHandler>().AsSingle().NonLazy();

            _grid            = Container.Resolve <Grid>();
            _tileMoveHandler = Container.Resolve <TileMoveHandler>();
        }
Example #2
0
 public void TearDown()
 {
     Container.UnbindAll();
     _grid            = null;
     _tileMoveHandler = null;
 }