public TeamGame(DateTime dateTime, Sport sport, Location location) { DateTime = dateTime; Sport = sport.Name; Location = location.Name; Id = Guid.NewGuid().ToString(); }
public static Sport CreateSoccerGame() { _soccer = new Sport { Name = "Soccer" }; return _soccer; }
public static Sport CreateBasketballGame() { _basketball = new Sport() { Name = "Basketball" }; return _basketball; }
public PickUpGame(DateTime dateTime, Sport sport, Location location) { DateTime = dateTime; Sport = sport.Name; Location = location.Name; Id = Guid.NewGuid().ToString(); PlayersIds = new List<string>(); }
public void HasASport() { var sport = new Sport("Soccer"); _teamGame.Sport = sport.Name; }
public void SetUp() { _sport = new Sport { Name = SoccerName }; _location = new Location { Name = LocationName }; _pickUpGame = new PickUpGame(DateTime.Now, _sport, _location); }
public PickUpGame CreatePickUpGame(DateTime dateTime, Sport sport, Location location, bool isPrivate = false) { return new PickUpGame(dateTime, sport, location) { IsPrivate = isPrivate }; }
public TeamGame CreateGameWithTeams(DateTime dateTime, Sport sport, Location location, bool isPrivate = false) { return new TeamGame(dateTime, sport, location) {IsPrivate = isPrivate}; }
public void SetUp() { _sport = new Sport(); }
public void SetUp() { _factory = new GameFactory(); _sport = new Sport("Soccer"); _location = new Location("Bend"); }
public ProfileBuilder WithSport(Sport sport) { Sport = sport; return this; }
public void SetUp() { _sport = new Sport { Name = SoccerName }; _location = new Location { Name = LocationName }; _teamTeamGame = new TeamGame(DateTime.Now, _sport, _location); _mockGameRepo = new Mock<ITeamGameRepository>(); }
public void HasASport() { var sport = new Sport("Soccer"); _game.Sport = sport.Name; Assert.That(_game.Sport, Is.EqualTo(sport.Name)); }