Esempio n. 1
0
 public TeamGame(DateTime dateTime, Sport sport, Location location)
 {
     DateTime = dateTime;
     Sport = sport.Name;
     Location = location.Name;
     Id = Guid.NewGuid().ToString();
 }
Esempio n. 2
0
 public static Sport CreateSoccerGame()
 {
     _soccer = new Sport
                   {
                    Name = "Soccer"
                };
     return _soccer;
 }
Esempio n. 3
0
 public static Sport CreateBasketballGame()
 {
     _basketball = new Sport()
                {
                    Name = "Basketball"
                };
     return _basketball;
 }
Esempio n. 4
0
 public PickUpGame(DateTime dateTime, Sport sport, Location location)
 {
     DateTime = dateTime;
     Sport = sport.Name;
     Location = location.Name;
     Id = Guid.NewGuid().ToString();
     PlayersIds = new List<string>();
 }
Esempio n. 5
0
 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);
 }
Esempio n. 7
0
 public PickUpGame CreatePickUpGame(DateTime dateTime, Sport sport, Location location, bool isPrivate = false)
 {
     return new PickUpGame(dateTime, sport, location) { IsPrivate = isPrivate };
 }
Esempio n. 8
0
 public TeamGame CreateGameWithTeams(DateTime dateTime, Sport sport, Location location, bool isPrivate = false)
 {
     return new TeamGame(dateTime, sport, location) {IsPrivate = isPrivate};
 }
Esempio n. 9
0
 public void SetUp()
 {
     _sport = new Sport();
 }
Esempio n. 10
0
 public void SetUp()
 {
     _factory = new GameFactory();
     _sport = new Sport("Soccer");
     _location = new Location("Bend");
 }
Esempio n. 11
0
 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>();
 }
Esempio n. 13
0
 public void HasASport()
 {
     var sport = new Sport("Soccer");
     _game.Sport = sport.Name;
     Assert.That(_game.Sport, Is.EqualTo(sport.Name));
 }