コード例 #1
0
        private void InitializeToCSV(string filePath, string userName)
        {
            Untappd = new Untappd(GetUntappdUserName(userName));
            using (FileStream fileStream = File.OpenRead(filePath))
                CheckinCSVMapper.InitializeCheckinsContainer(Untappd.CheckinsContainer, fileStream);

            SortDataDescCheckins();
        }
コード例 #2
0
 public static CheckinsContainer GetCheckinsContainer()
 {
     using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(Resources.ResourcesTestFileName))
     {
         CheckinsContainer checkinsContainer = new CheckinsContainer();
         CheckinCSVMapper.InitializeCheckinsContainer(checkinsContainer, stream);
         return(checkinsContainer);
     }
 }
コード例 #3
0
        public void TestReport()
        {
            ReportingService reportingService = new ReportingService();

            using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(Resources.ResourcesTestFileName))
            {
                CheckinsContainer checkinsContainer = new CheckinsContainer();
                CheckinCSVMapper.InitializeCheckinsContainer(checkinsContainer, stream);
                reportingService.CreateAllCheckinsReport(checkinsContainer.Checkins, @"", "result");
            }
        }