public void SearchPlayers(SearchPlayersRequest request, SearchPlayersConsumerBoundary consumerBoundary) { var players = _gateway.GetPlayers(request); var response = new SearchPlayersResponse { Players = ConvertPlayers(players) }; consumerBoundary.SetPlayers(response); }
public void SetPlayersSetsItemsProperty() { var players = new List<SearchPlayerModel>(); var response = new SearchPlayersResponse { Players = players }; _viewModel.SetPlayers(response); Assert.AreEqual(players, _viewModel.Items); }
public void SetPlayers(SearchPlayersResponse playersResponse) { Items = playersResponse.Players; RaisePropertyChanged(() => Items); }
public void SetPlayers(SearchPlayersResponse playersResponse) { Response = playersResponse; }