public void GetRecoverabilityIntegrityDetails_Default(RecoverabilityIntegrityViewColumns sortColumn) { var conditions = new GridConditions { SortColumn = sortColumn.ToString() }; var otherConditions = new RecoverabilityIntegrityViewFilterConditions(); var details = this.reportRepository.GetRecoverabilityIntegrityDetails( conditions, otherConditions, new RecoverabilityIntegrityViewFilterOperands()); Assert.That(details, Is.Not.Null); }
public void GetRecoverabilityIntegrityDetails(RecoverabilityIntegrityViewColumns sortColumn) { //Arrange var gridConditions = new GridConditions(); var filterConditions = new RecoverabilityIntegrityViewFilterConditions(); var filterOperands = new RecoverabilityIntegrityViewFilterOperands(); //Grid conditions gridConditions.SortColumn = sortColumn.ToString(); gridConditions.SortDirection = "ASC"; gridConditions.TimezoneOffset = 0; gridConditions.StartRow = 1; gridConditions.EndRow = 25; //Filter conditions //Filter operands filterOperands.RecoverabilityIntegrityScore = FilterOperand.Equals; filterOperands.BackupFrequencyScore = FilterOperand.Equals; filterOperands.BackupCoverageScore = FilterOperand.Equals; filterOperands.DbccFrequencyScore = FilterOperand.Equals; filterOperands.DbccCoverageScore = FilterOperand.Equals; filterOperands.RPOScore = FilterOperand.Equals; filterOperands.RTOScore = FilterOperand.Equals; //Page-level filters gridConditions.StartDate = DateTime.Now.AddYears(-1); gridConditions.EndDate = DateTime.Now.AddDays(1); //Act var result = this.reportRepository.GetRecoverabilityIntegrityDetails(gridConditions, filterConditions, filterOperands); //Assert Assert.That(result, Is.Not.Null); Assert.That(result, Is.Not.Empty); }