コード例 #1
0
        public EmailSender()
        {
            Collection<string> to = new Collection<string>();

            _template = new EmailTemplate(
                "New Coyote Moves Request",
                to,
                "*****@*****.**",
                "",
                "../../../CoyoteMoves/CoyoteMovesTemplate.pdf");

            _requester = new RequestFormDB();
        }
コード例 #2
0
        public void Setup()
        {
            _to = new Collection<string> { };
            _emailer = new EmailSender("New Coyote Moves Request", _to, "*****@*****.**", "Here you go!", "../../../CoyoteMoves/CoyoteMovesTemplate.pdf");
            _req = new RequestForm(989);
            _template = new EmailTemplate("one", _to, "*****@*****.**", "dere you go", "../../../CoyoteMoves/CoyoteMovesTemplate.pdf");
            _falseTemplate = new EmailTemplate("one", _to, "*****@*****.**", "", "../../CoyoteMoves/CoyoteMovesTemplate.pdf");

            _req.Current = new CoyoteMovesFormEmployeeInfo();
            _req.Future = new CoyoteMovesFormEmployeeInfo();
            _req.Current.BazookaInfo = new BazookaInfo();
            _req.Future.BazookaInfo = new BazookaInfo();
            _req.Current.UltiproInfo = new UltiproInfo();
            _req.Future.UltiproInfo = new UltiproInfo();
            _req.Current.DeskInfo = new DeskInfo();
            _req.Future.DeskInfo = new DeskInfo();
            _req.Current.PhoneInfo = new PhoneInfo();
            _req.Future.PhoneInfo = new PhoneInfo();
            _req.EmailInfo = new EmailDistributionInfo();
            _req.ReviewInfo = new EmployeeReviewFileInfo();

            _req.Current.BazookaInfo.JobTitle = "test";
            _req.Future.BazookaInfo.JobTitle = "test";
            _req.Current.BazookaInfo.Department = "test";
            _req.Future.BazookaInfo.Department = "test";
            _req.Current.BazookaInfo.Group = "test";
            _req.Future.BazookaInfo.Group = "test";
            _req.Current.BazookaInfo.ManagerID = 49;
            _req.Future.BazookaInfo.ManagerID = 50;
            _req.Current.BazookaInfo.JobTemplate = "test";
            _req.Future.BazookaInfo.JobTemplate = "testy";
            _req.Current.BazookaInfo.SecurityItemRights = "test";
            _req.Future.BazookaInfo.SecurityItemRights = "test";

            _req.Current.UltiproInfo.JobTitle = "test";
            _req.Future.UltiproInfo.JobTitle = "test";
            _req.Current.UltiproInfo.Department = "test";
            _req.Future.UltiproInfo.Department = "test";
            _req.Current.UltiproInfo.Supervisor = "120 ";
            _req.Future.UltiproInfo.Supervisor = "350";
            _req.Current.UltiproInfo.Other = "test";
            _req.Future.UltiproInfo.Other = "test?";

            _req.Current.DeskInfo.DeskNumber = "test";
            _req.Future.DeskInfo.DeskNumber = "test";
            _req.Current.DeskInfo.Office = "test";
            _req.Future.DeskInfo.Office = "test";

            _req.Current.PhoneInfo.PhoneNumber = "8472718339";
            _req.Future.PhoneInfo.PhoneNumber = "99995953214";

            _req.EmailInfo.GroupsToBeAddedTo = "one, two, three";
            _req.EmailInfo.GroupsToBeRemovedFrom = "one, two, three";

            _req.ReviewInfo.FilesToBeAddedTo = "one, two, three";
            _req.ReviewInfo.FilesToBeRemovedFrom = "one, two, three";
        }
コード例 #3
0
 public EmailSender(string subject, Collection <string> to, string from, string emailBody, string pdfLocation)
 {
     _template  = new EmailTemplate(subject, to, from, emailBody, pdfLocation);
     _requester = new RequestFormDB();
 }
コード例 #4
0
 public EmailSender(string subject, Collection<string> to, string from, string emailBody, string pdfLocation)
 {
     _template = new EmailTemplate(subject, to, from, emailBody, pdfLocation);
     _requester = new RequestFormDB();
 }