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; }
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; }
public DFtpListResult(DFtpResultType type, String message, List <DFtpFile> files) : base(type, message) { this.Files = files; }
public DFtpResult(DFtpResultType type, String message = "") { this.Type = type; this.Message = message; }