void ThoughtsAndCrosses(string roomId, string userId) { var gameThoughtsAndCrosses = new GameThoughtsAndCrosses(_shuffleHelper); gameThoughtsAndCrosses.CalculateTopics(); gameThoughtsAndCrosses.SetLetter(); Rooms.RoomsList[roomId].SetThoughtsAndCrosses(gameThoughtsAndCrosses); }
public void SetTopics() { _shuffleHelper .ShuffleList(Arg.Any <List <string> >()) .Returns(new List <string> { "Girls name", "Boys name", "Book", "Fictional character", "Company / Brand", "Something outside", "Hobby", "Toy", "Electrical item", "Kitchen item", "Body part", "Colour", "Song", "Something savoury", "Something sweet", "Colour", "Toy", "Movie", "Job / Occupation", "Sport / Game", "Place", "Food", "TV programme", "Transport", "Pet", "Actor / Actress", "Family member", "Holiday destination", "Weather", "Animal / Bird", "Something you make", "Fundraising Activity", "Drink", "Ice cream", "Artist", "Musical instrument", "Fundraising Activity" }); var thoughtsAndCrosses = new GameThoughtsAndCrosses(_shuffleHelper); thoughtsAndCrosses.CalculateTopics(); var topicsSet1 = thoughtsAndCrosses.Topics.ChosenTopics; thoughtsAndCrosses.CalculateTopics(); var topicsSet2 = thoughtsAndCrosses.Topics.ChosenTopics; thoughtsAndCrosses .Topics .ChosenTopics .Should() .HaveCount(9); topicsSet1.Should().NotEqual(topicsSet2); }