DD.WellWorkover.Cloud/ConsoleApp1/Program.cs
2022-05-05 10:06:21 +05:00

32 lines
834 B
C#

using AsbCloudInfrastructure.Services.DailyReport;
using System;
namespace ConsoleApp1
{
class Program
{
static void Main(/*string[] args*/)
{
// use ServiceFactory to make services
var makerExcel = new DailyReportMakerExcel();
AsbCloudApp.Data.DailyReportDto dto = new() {
WellName = "111",
ClusterName = "cluster name",
Contractor = "NaftaGas",
};
using var stream = makerExcel.MakeReport(dto);
using (var fileStream = System.IO.File.Create(@"c:/temp/1.xlsx"))
{
stream.CopyTo(fileStream);
fileStream.Flush();
}
Console.WriteLine("End of Test");
Console.ReadLine();
}
}
}