Exemplo n.º 1
0
 public FileShareServiceHealthCheck(IFileShareServiceClient fileShareService,
                                    IAuthFssTokenProvider authFssTokenProvider,
                                    IOptions <FileShareServiceConfiguration> fileShareServiceConfig,
                                    ILogger <FileShareService> logger)
 {
     this.fileShareServiceClient = fileShareService;
     this.authFssTokenProvider   = authFssTokenProvider;
     this.fileShareServiceConfig = fileShareServiceConfig;
     this.logger = logger;
 }
Exemplo n.º 2
0
        public void Setup()
        {
            this.fakeLogger = A.Fake <ILogger <FileShareService> >();
            this.fakeAuthFssTokenProvider = A.Fake <IAuthFssTokenProvider>();
            this.fakeFileShareConfig      = Options.Create(new FileShareServiceConfiguration()
            {
                BaseUrl = "http://tempuri.org", CellName = "DE260001", EditionNumber = "1", Limit = 1, Start = 0, ProductCode = "AVCS", ProductLimit = 4, UpdateNumber = "0", UpdateNumberLimit = 10
            });
            this.fakeFileShareServiceClient = A.Fake <IFileShareServiceClient>();

            fileShareServiceHealthCheck = new FileShareServiceHealthCheck(fakeFileShareServiceClient, fakeAuthFssTokenProvider, fakeFileShareConfig, fakeLogger);
        }