public CalcLoadTypeDto GetLoadTypeInformationByGuid(StrGuid guid) { if (_loadtypes == null) { CalcLoadTypeDtoLogger cpl = new CalcLoadTypeDtoLogger(_srls); _loadtypes = cpl.Load(); } return _loadtypes.Single(x => x.Guid == guid); }
public void RunCalcLoadtypeDtoLoggerTest() { using (WorkingDir wd = new WorkingDir(Utili.GetCurrentMethodAndClass())) { CalcLoadTypeDtoLogger cldtl = new CalcLoadTypeDtoLogger(wd.SqlResultLoggingService); CalcLoadTypeDto cdls = new CalcLoadTypeDto("name", "unit", "unit", 5, true, "guid".ToStrGuid()); List <CalcLoadTypeDto> cdlsList = new List <CalcLoadTypeDto>(); cdlsList.Add(cdls); cldtl.Run(Constants.GeneralHouseholdKey, cdlsList); cldtl.Load(); } }