コード例 #1
0
 public void SearchPlayers(SearchPlayersRequest request, SearchPlayersConsumerBoundary consumerBoundary)
 {
     var players = _gateway.GetPlayers(request);
     var response = new SearchPlayersResponse
     {
         Players = ConvertPlayers(players)
     };
     consumerBoundary.SetPlayers(response);
 }
コード例 #2
0
        public void SetPlayersSetsItemsProperty()
        {
            var players = new List<SearchPlayerModel>();
            var response = new SearchPlayersResponse
            {
                Players = players
            };

            _viewModel.SetPlayers(response);

            Assert.AreEqual(players, _viewModel.Items);
        }
コード例 #3
0
 public void SetPlayers(SearchPlayersResponse playersResponse)
 {
     Items = playersResponse.Players;
     RaisePropertyChanged(() => Items);
 }
コード例 #4
0
 public void SetPlayers(SearchPlayersResponse playersResponse)
 {
     Response = playersResponse;
 }