Esempio n. 1
0
        public async void ControllerDelegatesRequestsToDownStreamServicesToGetAllSpeakers()
        {
            var mockApiService = new Mock <IBoqApiService>();

            mockApiService.Setup(api => api.GetAllSpeakersWithSessions());

            var controller = new DemoController(mockApiService.Object);
            await controller.AllSpeakers();

            mockApiService.Verify(mock => mock.GetAllSpeakersWithSessions(), Times.Once);
        }