public async Task <ActionResult> Dupex() { ApiCommunicator ac = new ApiCommunicator(); await ac.SendVoice(ViewBag.logs); ViewBag.Answer = await ac.Answer(); return(RedirectToAction("Index")); }
public VotePageViewModel(INavigationManager navigationManager, ApiCommunicator apiCommunicator) { _chosenCandidate = new Candidate(); _navigationManager = navigationManager; _apiCommunicator = apiCommunicator; VoteCommand = new RelayCommand(Vote, () => ChosenCandidate != null && !string.IsNullOrEmpty(Vit) && ChosenPsi != null); }
public void GivenTheTFLAPIAt(string apiUrl) { communicator = new ApiCommunicator(apiUrl); ScenarioContext.Current.Pending(); }
protected override async Task OnInitAsync() { Email = await ApiCommunicator.GetMyEmail(); }
public ApiCommunicatorTest() { _auth = new AuthorizationManager(new NullLogger <AuthorizationManager>()); _api = new ApiCommunicator(_auth, new NullLogger <ApiCommunicator>()); }