public void SetUpBase()
{
_autoMocker = new RhinoAutoMocker<PlayerSaver>();
_currentUser = new ApplicationUser
{
CurrentGamingGroupId = 12
};
_playerThatAlreadyExists = new Player
{
Name = "the new player name"
};
_idOfPlayerThatAlreadyExists = 9;
_players = new List<Player>
{
new Player
{
Id = _idOfPlayerThatAlreadyExists,
Name = this._playerThatAlreadyExists.Name,
GamingGroupId = _currentUser.CurrentGamingGroupId
},
new Player
{
Id = 2
}
};
_autoMocker.Get<IDataContext>().Expect(mock => mock.GetQueryable<Player>())
.Repeat.Once()
.Return(_players.AsQueryable());
}
}