Exemple #1
0
 public void Setup()
 {
     _publicApi      = new Mock <IPublicApi>(MockBehavior.Strict);
     _deckBuilder    = new Mock <IDestinyDeckBuilder>(MockBehavior.Strict);
     _deckListId     = "1";
     _deck           = TestUtils.GetValidDestinyDeck();
     _deckList       = new DeckList();
     _deckRepository = new DeckRepository(_publicApi.Object, _deckBuilder.Object);
 }
Exemple #2
0
 static void WriteDeckToConsole(DestinyDeck deck)
 {
     Console.WriteLine("Destiny Deck");
     Console.WriteLine($"Total Points: {deck.TotalPoints}");
     Console.WriteLine("Characters:");
     foreach (var character in deck.Team)
     {
         Console.WriteLine($"\t{character.Name} - {character.Dice.Count} Dice @ {character.TotalPoints} points.");
     }
     Console.WriteLine("Draw Deck:");
     foreach (var card in deck.DrawDeck)
     {
         Console.WriteLine($"\t{card.Name}");
     }
     Console.WriteLine("Battlefield:");
     Console.WriteLine($"\t{deck.Battlefield.Name}");
 }
Exemple #3
0
 public void Setup()
 {
     _destinyDeck = TestUtils.GetValidDestinyDeck();
     _player      = new Player(_destinyDeck);
 }
Exemple #4
0
 public void Setup()
 {
     _destinyDeck = TestUtils.GetValidDestinyDeck();
 }