Пример #1
0
        public virtual bool Approve()
        {
            string basename = Path.Combine(this.namer.SourcePath, this.namer.Name);
            this.approved = Path.GetFullPath(this.writer.GetApprovalFilename(basename));
            this.received = Path.GetFullPath(this.writer.GetReceivedFilename(basename));
            this.received = this.writer.WriteReceivedFile(this.received);

            this.failure = this.Approve(this.approved, this.received);
            return this.failure == null;
        }
		public virtual bool Approve()
		{
			string basename = string.Format(@"{0}\{1}", namer.SourcePath, namer.Name);
			approved = Path.GetFullPath(writer.GetApprovalFilename(basename));
			received = Path.GetFullPath(writer.GetReceivedFilename(basename));
			received = writer.WriteReceivedFile(received);

			failure = Approve(approved, received);
			return failure == null;
		}
		protected bool Equals(ApprovalException other)
		{
			return string.Equals(approved, other.approved) && string.Equals(received, other.received);
		}
 public virtual bool Approve()
 {
     _failure = Approve(_approved, _received);
     return _failure == null;
 }
 protected bool Equals(ApprovalException other)
 {
     return(string.Equals(approved, other.approved) && string.Equals(received, other.received));
 }