private void InitializeToCSV(string filePath, string userName) { Untappd = new Untappd(GetUntappdUserName(userName)); using (FileStream fileStream = File.OpenRead(filePath)) CheckinCSVMapper.InitializeCheckinsContainer(Untappd.CheckinsContainer, fileStream); SortDataDescCheckins(); }
public static CheckinsContainer GetCheckinsContainer() { using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(Resources.ResourcesTestFileName)) { CheckinsContainer checkinsContainer = new CheckinsContainer(); CheckinCSVMapper.InitializeCheckinsContainer(checkinsContainer, stream); return(checkinsContainer); } }
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"); } }