public void Given_two_consist_string_when_click_find_then_return_the_letter_was_added(string s, string t, char expected) { var solution = new FindTheDifference(); var actual = solution.FindDifference(s, t); Assert.Equal(expected, actual); }
public FindTheDifference NewGame(int teamId, int itemCount) { if (_ftdRepo.GetFindTheDifferenceByTeam(teamId) == null) { var ftd = new FindTheDifference() { AssignedTeamId = teamId, FoundItemsList = new List <FindTheDifferenceItem>(), startTime = DateTime.Now }; for (int i = 0; i < itemCount; i++) { ftd.FoundItemsList.Add(new FindTheDifferenceItem() { found = false }); } return(_ftdRepo.NewGame(ftd)); } return(null); }
public FindTheDifference NewGame(FindTheDifference newFTD) { _context.FindTheDifferences.Add(newFTD); _context.SaveChanges(); return(newFTD); }