C# Class BolfTracker.Infrastructure.EntityFramework.IntegrationTests.ObjectMother

显示文件 Open project: mkchandler/bolf-tracker-mvc

Public Methods

Method Description
CreateGame ( ) : BolfTracker.Models.Game
CreateGameStatistics ( BolfTracker.Models.Game game ) : BolfTracker.Models.GameStatistics
CreateHole ( int id ) : BolfTracker.Models.Hole
CreateHoleStatistics ( BolfTracker.Models.Hole hole ) : BolfTracker.Models.HoleStatistics
CreatePlayer ( ) : BolfTracker.Models.Player
CreatePlayerGameStatistics ( BolfTracker.Models.Game game, BolfTracker.Models.Player player ) : BolfTracker.Models.PlayerGameStatistics
CreatePlayerHoleStatistics ( BolfTracker.Models.Player player, BolfTracker.Models.Hole hole ) : BolfTracker.Models.PlayerHoleStatistics
CreatePlayerRivalryStatistics ( BolfTracker.Models.Game game, BolfTracker.Models.Player player, BolfTracker.Models.Player affectedPlayer, BolfTracker.Models.Hole hole, BolfTracker.Models.ShotType shotType ) : BolfTracker.Models.PlayerRivalryStatistics
CreatePlayerStatistics ( BolfTracker.Models.Player player ) : BolfTracker.Models.PlayerStatistics
CreateRanking ( BolfTracker.Models.Player player ) : BolfTracker.Models.Ranking
CreateShot ( BolfTracker.Models.Game game, BolfTracker.Models.Player player, BolfTracker.Models.ShotType shotType, BolfTracker.Models.Hole hole ) : BolfTracker.Models.Shot
CreateShotType ( ) : BolfTracker.Models.ShotType

Private Methods

Method Description
Random ( ) : string

Method Details

CreateGame() public static method

public static CreateGame ( ) : BolfTracker.Models.Game
return BolfTracker.Models.Game

CreateGameStatistics() public static method

public static CreateGameStatistics ( BolfTracker.Models.Game game ) : BolfTracker.Models.GameStatistics
game BolfTracker.Models.Game
return BolfTracker.Models.GameStatistics

CreateHole() public static method

public static CreateHole ( int id ) : BolfTracker.Models.Hole
id int
return BolfTracker.Models.Hole

CreateHoleStatistics() public static method

public static CreateHoleStatistics ( BolfTracker.Models.Hole hole ) : BolfTracker.Models.HoleStatistics
hole BolfTracker.Models.Hole
return BolfTracker.Models.HoleStatistics

CreatePlayer() public static method

public static CreatePlayer ( ) : BolfTracker.Models.Player
return BolfTracker.Models.Player

CreatePlayerGameStatistics() public static method

public static CreatePlayerGameStatistics ( BolfTracker.Models.Game game, BolfTracker.Models.Player player ) : BolfTracker.Models.PlayerGameStatistics
game BolfTracker.Models.Game
player BolfTracker.Models.Player
return BolfTracker.Models.PlayerGameStatistics

CreatePlayerHoleStatistics() public static method

public static CreatePlayerHoleStatistics ( BolfTracker.Models.Player player, BolfTracker.Models.Hole hole ) : BolfTracker.Models.PlayerHoleStatistics
player BolfTracker.Models.Player
hole BolfTracker.Models.Hole
return BolfTracker.Models.PlayerHoleStatistics

CreatePlayerRivalryStatistics() public static method

public static CreatePlayerRivalryStatistics ( BolfTracker.Models.Game game, BolfTracker.Models.Player player, BolfTracker.Models.Player affectedPlayer, BolfTracker.Models.Hole hole, BolfTracker.Models.ShotType shotType ) : BolfTracker.Models.PlayerRivalryStatistics
game BolfTracker.Models.Game
player BolfTracker.Models.Player
affectedPlayer BolfTracker.Models.Player
hole BolfTracker.Models.Hole
shotType BolfTracker.Models.ShotType
return BolfTracker.Models.PlayerRivalryStatistics

CreatePlayerStatistics() public static method

public static CreatePlayerStatistics ( BolfTracker.Models.Player player ) : BolfTracker.Models.PlayerStatistics
player BolfTracker.Models.Player
return BolfTracker.Models.PlayerStatistics

CreateRanking() public static method

public static CreateRanking ( BolfTracker.Models.Player player ) : BolfTracker.Models.Ranking
player BolfTracker.Models.Player
return BolfTracker.Models.Ranking

CreateShot() public static method

public static CreateShot ( BolfTracker.Models.Game game, BolfTracker.Models.Player player, BolfTracker.Models.ShotType shotType, BolfTracker.Models.Hole hole ) : BolfTracker.Models.Shot
game BolfTracker.Models.Game
player BolfTracker.Models.Player
shotType BolfTracker.Models.ShotType
hole BolfTracker.Models.Hole
return BolfTracker.Models.Shot

CreateShotType() public static method

public static CreateShotType ( ) : BolfTracker.Models.ShotType
return BolfTracker.Models.ShotType