예제 #1
0
        public void NewDFtpResultContructor_PublicMethodsReturnsMatchingParameters(DFtpResultType resultType, String msg)
        {
            DFtpResult result = new DFtpResult(resultType, msg);

            Assert.True(result.Type == resultType);
            Assert.True(result.Message == msg);
            return;
        }
예제 #2
0
    public DFtpListResult(DFtpResultType type, String message, FtpListItem[] files) : base(type, message)
    {
        List <DFtpFile> list = new List <DFtpFile>();

        foreach (FtpListItem item in files)
        {
            DFtpFile file = new DFtpFile(item);
            list.Add(file);
        }
        this.Files = list;
    }
예제 #3
0
 public DFtpListResult(DFtpResultType type, String message, List <DFtpFile> files) : base(type, message)
 {
     this.Files = files;
 }
예제 #4
0
 public DFtpResult(DFtpResultType type, String message = "")
 {
     this.Type    = type;
     this.Message = message;
 }