GisterSpecs.MockGitHubSender.SendGist C# (CSharp) Method

SendGist() public method

public SendGist ( string fileName, string content, GitHubCredentials credentials ) : string
fileName string
content string
credentials GitHubCredentials
return string
        public string SendGist(string fileName, string content, GitHubCredentials credentials)
        {
            LastCredentialsApplied = credentials;

            if (ShouldThrow())
                throw new GitHubUnauthorizedException(failureStatusDescription);

            SentAGist = true;

            return ResultingUrl;
        }