internal void TestGetPerson(string input, WebexTeamsRoom apiResponse, GlobalXRoom output) { this.Given(x => GivenAPersonId(input)) .When(x => WhenGettingAPerson(apiResponse)) .Then(x => ThenItShouldReturnPersonDetails(output)) .BDDfy(); }
private async void WhenGettingAPerson(WebexTeamsRoom apiResponse) { _apiService.GetRoomAsync(_input).Returns(Task.FromResult(apiResponse)); _output = await _subject.GetRoomAsync(_input); }