< Summary

Information
Class: Services.StockSyncServices.GoogleSheetsStockSyncOptions
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/StockSyncServices/GoogleSheetsStockSyncOptions.cs
Line coverage
83%
Covered lines: 5
Uncovered lines: 1
Coverable lines: 6
Total lines: 26
Line coverage: 83.3%
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_SpreadsheetId()100%11100%
get_FirstSheetName()100%210%
get_ServiceAccountJson()100%11100%
get_ServiceAccount()100%11100%
get_StartSyncCode()100%11100%
get_CronExpression()100%11100%

File(s)

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

#LineLine coverage
 1namespace Services.StockSyncServices;
 2
 3public class GoogleSheetsStockSyncOptions
 4{
 95    public string SpreadsheetId { get; set; } = string.Empty;
 06    public string? FirstSheetName { get; set; }
 97    public string ServiceAccountJson { get; set; } = string.Empty;
 98    public GoogleServiceAccountOptions ServiceAccount { get; set; } = new();
 349    public string StartSyncCode { get; set; } = string.Empty;
 910    public string CronExpression { get; set; } = "*/5 * * * *";
 11}
 12
 13public class GoogleServiceAccountOptions
 14{
 15    public string Type { get; set; } = "service_account";
 16    public string ProjectId { get; set; } = string.Empty;
 17    public string PrivateKeyId { get; set; } = string.Empty;
 18    public string PrivateKey { get; set; } = string.Empty;
 19    public string ClientEmail { get; set; } = string.Empty;
 20    public string ClientId { get; set; } = string.Empty;
 21    public string AuthUri { get; set; } = "https://accounts.google.com/o/oauth2/auth";
 22    public string TokenUri { get; set; } = "https://oauth2.googleapis.com/token";
 23    public string AuthProviderX509CertUrl { get; set; } = "https://www.googleapis.com/oauth2/v1/certs";
 24    public string ClientX509CertUrl { get; set; } = string.Empty;
 25    public string UniverseDomain { get; set; } = "googleapis.com";
 26}