public void Export_to_excel()
        {
            var act   = DataMother.GetAct();
            var sheet = Exporter.Export(act);

            Assert.That(sheet, Is.Not.Null);

/*			var workbook = new Workbook();
 *                      workbook.Worksheets.Add(sheet);
 *                      workbook.Save("1.xls");
 *                      Process.Start("1.xls");*/
        }
Example #2
0
        public void Revision_act()
        {
            var act = DataMother.GetAct();

            mailer.RevisionAct(act, "*****@*****.**", "");
            mailer.Send();
            Assert.That(message.Subject, Is.EqualTo("Акт сверки"));
            Assert.That(message.From.ToString(), Is.EqualTo("*****@*****.**"));
            Assert.That(message.To.ToString(), Is.EqualTo("*****@*****.**"));
            Assert.That(message.Body, Is.StringContaining("Во вложении акт сверки на 01.02.2011"));
            Assert.That(message.Attachments.Count, Is.EqualTo(1));
            Assert.That(message.Attachments[0].Name, Is.EqualTo("Акт сверки.xls"));
        }