Example #1
0
 /// <summary>
 /// Initializes static members of the<see cref="UserManagerTests"/> class
 /// </summary>
 static UserManagerTests()
 {
     CloudStorageAccount = CloudStorageAccount.Parse(StorageConnectionString);
     CloudTableClient    = CloudStorageAccount.CreateCloudTableClient();
     AzureTableOperation = new AzureTableOperation();
     UserManager         = new UserManager();
 }
        public UserAccessRequestTracker(INotificationClient notificationClient, IAzureTableOperation azureTableOperation, string[] regulatoryBodyList, string scheduleTime, string timeZoneId)
            : base(notificationClient, UserAccessRequestTracker.Type)
        {
            if (azureTableOperation == null)
            {
                throw new ArgumentNullException("azureTableOperation");
            }

            if (regulatoryBodyList == null)
            {
                throw new ArgumentNullException("regulatoryBodyList");
            }

            if (string.IsNullOrWhiteSpace(scheduleTime))
            {
                throw new ArgumentException("scheduleTime");
            }

            if (string.IsNullOrWhiteSpace(timeZoneId))
            {
                this.timeZoneInfo = TimeZoneInfo.Utc;
            }

            this.azureTableOperation = azureTableOperation;
            this.regulatoryBodyList  = regulatoryBodyList;
            this.scheduleTime        = TimeSpan.Parse(scheduleTime);
            this.timeZoneInfo        = TimeZoneInfo.FindSystemTimeZoneById(timeZoneId);
        }
Example #3
0
        public AuditTracker(INotificationClient notificationClient, IAzureTableOperation azureTableOperation, double notificationInterval, int[] regionIdList)
            : base(notificationClient, notificationInterval, AuditTracker.Type)
        {
            if (azureTableOperation == null)
            {
                throw new ArgumentNullException("azureTableOperation");
            }

            if (regionIdList == null)
            {
                throw new ArgumentNullException("regionIdList");
            }

            this.azureTableOperation = azureTableOperation;
            this.regionIdList        = regionIdList;
        }
 public RegionDataAccess(IAzureTableOperation azureTableOperations)
 {
     this.azureTableOperations = azureTableOperations;
 }
 public UsersDataAccess(IAzureTableOperation azureTableOperations)
 {
     this.azureTableOperations = azureTableOperations;
 }
Example #6
0
 internal UserManager(IAzureTableOperation azureTableOperations)
 {
     this.azureTableOperations = azureTableOperations;
 }
Example #7
0
 static Infrastructure()
 {
     azureTableOperations = new AzureTableOperation();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AzureTableOperationTests"/> class
 /// </summary>
 public AzureTableOperationTests()
 {
     this.cloudStorageAccount = CloudStorageAccount.Parse(this.StorageConnectionString);
     this.cloudTableClient    = this.cloudStorageAccount.CreateCloudTableClient();
     this.azureTableOperation = new AzureTableOperation();
 }