public ConstructionChangeDirective(object key, object projectKey, int number) : base(key, projectKey) { this.number = number; this.to = null; this.from = null; this.issueDate = null; this.contractor = null; this.description = string.Empty; this.attachment = string.Empty; this.reason = string.Empty; this.initiator = string.Empty; this.cause = 0; this.origin = 0; this.remarks = string.Empty; this.changeType = null; this.priceChangeDirection = ChangeDirection.Unchanged; this.amountChanged = 0; this.timeChangeDirection = ChangeDirection.Unchanged; this.timeChanged = 0; this.ownerSignatureDate = null; this.architectSignatureDate = null; this.contractorSignatureDate = null; this.numberSpecification = new NumberSpecification <ConstructionChangeDirective>(); this.descriptionSpecification = new DescriptionSpecification <ConstructionChangeDirective>(); this.changeOrderKey = null; this.ValidateInitialization(); this.brokenRuleMessages = new ConstructionChangeDirectiveRuleMessages(); }
public ProposalRequest(object key, object projectKey, int number) : base(key, projectKey) { this.number = number; this.to = null; this.from = null; this.issueDate = null; this.GetExpectedContractorReturnDays(); this.expectedContractorReturnDate = this.TransmittalDate.AddDays(this.expectedContractorReturnDays); this.contractor = null; this.description = string.Empty; this.attachment = string.Empty; this.reason = string.Empty; this.initiator = string.Empty; this.cause = 0; this.origin = 0; this.remarks = string.Empty; this.numberSpecification = new NumberSpecification <ProposalRequest>(); this.descriptionSpecification = new DescriptionSpecification <ProposalRequest>(); this.ValidateInitialization(); this.brokenRuleMessages = new ProposalRequestRuleMessages(); }
public ChangeOrder(object key, object projectKey, int number) : base(key) { this.projectKey = projectKey; this.number = number; this.effectiveDate = DateTime.Now; this.contractor = null; this.description = string.Empty; this.changeType = null; this.priceChangeDirection = ChangeDirection.Unchanged; this.previousAuthorizedAmount = null; this.previousTimeChangedTotal = null; this.amountChanged = 0; this.timeChangeDirection = ChangeDirection.Unchanged; this.timeChanged = 0; this.routingItems = new List <RoutingItem>(); this.status = null; this.agencyApprovedDate = null; this.dateToField = null; this.ownerSignatureDate = null; this.architectSignatureDate = null; this.contractorSignatureDate = null; this.numberSpecification = new NumberSpecification <ChangeOrder>(); this.descriptionSpecification = new DescriptionSpecification <ChangeOrder>(); this.ValidateInitialization(); }
public RequestForInformation(object key, object projectKey, int number) : base(key, projectKey) { this.number = number; this.from = null; this.dateReceived = null; this.dateRequestedBy = null; this.contractor = null; this.specSection = null; this.question = string.Empty; this.description = string.Empty; this.contractorProposedSolution = string.Empty; this.change = false; this.cause = 0; this.origin = 0; this.status = null; this.dateToField = null; this.shortAnswer = string.Empty; this.longAnswer = string.Empty; this.remarks = string.Empty; this.numberSpecification = new NumberSpecification<RequestForInformation>(); this.dateToFieldSpecification = new RequestForInformationDateSpecification(); this.questionAnswerSpecification = new RequestForInformationQuestionAnswerSpecification(); this.ValidateInitialization(); }
public ConstructionChangeDirective(object key, object projectKey, int number) : base(key, projectKey) { this.number = number; this.to = null; this.from = null; this.issueDate = null; this.contractor = null; this.description = string.Empty; this.attachment = string.Empty; this.reason = string.Empty; this.initiator = string.Empty; this.cause = 0; this.origin = 0; this.remarks = string.Empty; this.changeType = null; this.priceChangeDirection = ChangeDirection.Unchanged; this.amountChanged = 0; this.timeChangeDirection = ChangeDirection.Unchanged; this.timeChanged = 0; this.ownerSignatureDate = null; this.architectSignatureDate = null; this.contractorSignatureDate = null; this.numberSpecification = new NumberSpecification<ConstructionChangeDirective>(); this.descriptionSpecification = new DescriptionSpecification<ConstructionChangeDirective>(); this.changeOrderKey = null; this.ValidateInitialization(); this.brokenRuleMessages = new ConstructionChangeDirectiveRuleMessages(); }
public RequestForInformation(object key, object projectKey, int number) : base(key, projectKey) { this.number = number; this.from = null; this.dateReceived = null; this.dateRequestedBy = null; this.contractor = null; this.specSection = null; this.question = string.Empty; this.description = string.Empty; this.contractorProposedSolution = string.Empty; this.change = false; this.cause = 0; this.origin = 0; this.status = null; this.dateToField = null; this.shortAnswer = string.Empty; this.longAnswer = string.Empty; this.remarks = string.Empty; this.numberSpecification = new NumberSpecification <RequestForInformation>(); this.dateToFieldSpecification = new RequestForInformationDateSpecification(); this.questionAnswerSpecification = new RequestForInformationQuestionAnswerSpecification(); this.ValidateInitialization(); }
public ProposalRequest(object key, object projectKey, int number) : base(key, projectKey) { this.number = number; this.to = null; this.from = null; this.issueDate = null; this.GetExpectedContractorReturnDays(); this.expectedContractorReturnDate = this.TransmittalDate.AddDays(this.expectedContractorReturnDays); this.contractor = null; this.description = string.Empty; this.attachment = string.Empty; this.reason = string.Empty; this.initiator = string.Empty; this.cause = 0; this.origin = 0; this.remarks = string.Empty; this.numberSpecification = new NumberSpecification<ProposalRequest>(); this.descriptionSpecification = new DescriptionSpecification<ProposalRequest>(); this.ValidateInitialization(); this.brokenRuleMessages = new ProposalRequestRuleMessages(); }
public ChangeOrder(object key, object projectKey, int number) : base(key) { this.projectKey = projectKey; this.number = number; this.effectiveDate = DateTime.Now; this.contractor = null; this.description = string.Empty; this.changeType = null; this.priceChangeDirection = ChangeDirection.Unchanged; this.previousAuthorizedAmount = null; this.previousTimeChangedTotal = null; this.amountChanged = 0; this.timeChangeDirection = ChangeDirection.Unchanged; this.timeChanged = 0; this.routingItems = new List<RoutingItem>(); this.status = null; this.agencyApprovedDate = null; this.dateToField = null; this.ownerSignatureDate = null; this.architectSignatureDate = null; this.contractorSignatureDate = null; this.numberSpecification = new NumberSpecification<ChangeOrder>(); this.descriptionSpecification = new DescriptionSpecification<ChangeOrder>(); this.ValidateInitialization(); }
public void SelectWithSpecification_EmptyCollection_ReturnsFalse() { string number = "12-xx-78"; Agreement agreement = TestDbContextHelper.AddAgreement(number); using (var repository = new AgreementRepository(new TestDbContext())) { var specification = new NumberSpecification(number); var result = repository.Select(specification); Assert.IsNotNull(result); } }
public void Setup() { sut = new NumberSpecification(); }