Refactored code, restructured project organization, and added new unit tests.

This commit is contained in:
Daniel Wathen
2022-12-13 12:11:28 -07:00
parent 8f96e31121
commit b5def3da89
33 changed files with 670 additions and 418 deletions

View File

@ -0,0 +1,13 @@
using ReportingServices.Models.ProductionReport;
using ReportingServices.ViewModels.ProductionReport;
namespace ReportingServices.Dependency_Injections
{
public interface IFabTimeReportingRepository
{
public Task<List<ReactorOutsByRDS>> GetMovesTrendData(string startDate = "", string endDate = "");
public Task GetToolStateTrendData(DailyReport rpt, string toolType);
public Task GetToolStateData(DailyReport rpt, string toolType);
public Task<T> GetJsonData<T>(string url);
}
}

View File

@ -0,0 +1,17 @@
using ReportingServices.Models.PlanningReport;
using ReportingServices.Models.ProductionReport;
namespace ReportingServices.Dependency_Injections
{
public interface IScrapeDatabaseRepository
{
public void OpenConnection();
public void CloseConnection();
public List<ScrapByDay> GetScrapByDay(List<ReactorOutsByRDS> outs);
public List<ReactorPSNWORuns> GetReactorPSNWORuns(string startDate, string endDate);
public int GetNumberOfPartChanges(string startDate, string endDate);
public QuarterlyTargets GetQuarterlyTargets();
public List<Reactor> GetReactors();
public List<RDS> GetRDSForLastDay();
}
}