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>(); }
public void TearDown() { Container.UnbindAll(); _grid = null; _tileMoveHandler = null; }