public async void Get_all_registrations_Test() { _IRegistrationRepoMock.Setup(x => x.GetAll()) .ReturnsAsync(new List <RegistrationDto>()); var response = await _registrationController.Registrations(); Assert.IsType <OkObjectResult>(response); }