< Summary

Information
Class: Services.StockSyncServices.GoogleServiceAccountOptions
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/StockSyncServices/GoogleSheetsStockSyncOptions.cs
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 26
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Type()100%11100%
get_ProjectId()100%11100%
get_PrivateKeyId()100%11100%
get_PrivateKey()100%11100%
get_ClientEmail()100%11100%
get_ClientId()100%11100%
get_AuthUri()100%11100%
get_TokenUri()100%11100%
get_AuthProviderX509CertUrl()100%11100%
get_ClientX509CertUrl()100%11100%
get_UniverseDomain()100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/StockSyncServices/GoogleSheetsStockSyncOptions.cs

#LineLine coverage
 1namespace Services.StockSyncServices;
 2
 3public class GoogleSheetsStockSyncOptions
 4{
 5    public string SpreadsheetId { get; set; } = string.Empty;
 6    public string? FirstSheetName { get; set; }
 7    public string ServiceAccountJson { get; set; } = string.Empty;
 8    public GoogleServiceAccountOptions ServiceAccount { get; set; } = new();
 9    public string StartSyncCode { get; set; } = string.Empty;
 10    public string CronExpression { get; set; } = "*/5 * * * *";
 11}
 12
 13public class GoogleServiceAccountOptions
 14{
 915    public string Type { get; set; } = "service_account";
 916    public string ProjectId { get; set; } = string.Empty;
 917    public string PrivateKeyId { get; set; } = string.Empty;
 918    public string PrivateKey { get; set; } = string.Empty;
 919    public string ClientEmail { get; set; } = string.Empty;
 920    public string ClientId { get; set; } = string.Empty;
 921    public string AuthUri { get; set; } = "https://accounts.google.com/o/oauth2/auth";
 922    public string TokenUri { get; set; } = "https://oauth2.googleapis.com/token";
 923    public string AuthProviderX509CertUrl { get; set; } = "https://www.googleapis.com/oauth2/v1/certs";
 924    public string ClientX509CertUrl { get; set; } = string.Empty;
 925    public string UniverseDomain { get; set; } = "googleapis.com";
 26}