public async Task When_Error_Occured_While_Trying_To_Retrieve_The_AuthorizationProviders_Then_InternalError_Is_Returned()
        {
            // ARRANGE
            InitializeFakeObjects();
            _authenticationProviderRepositoryStub.Setup(a => a.GetAuthenticationProviders())
            .Returns(Task.FromResult <ICollection <AuthenticationProvider> >(null));

            // ACT
            var result = await _getAuthenticationProviders.ExecuteAsync();

            // ARRANGE
            Assert.NotNull(result);
            Assert.NotNull(result as StatusCodeResult);
            Assert.True((result as StatusCodeResult).StatusCode == StatusCodes.Status500InternalServerError);
        }
 public Task <ActionResult> GetAuthenticationProviders()
 {
     return(_getAuthenticationProviders.ExecuteAsync());
 }