public void Initialize() { _repo = new MockInspectionReportRepository(); _unit = Substitute.For <IUnitOfWork>(); _report = new InspectionReport { InspectionNo = "ABCDEF", InspectionDate = new DateTime(2016, 06, 12, 00, 00, 00), StructureNo = "354891", DeckType = "Earth", IsMaintenanceRequired = false, IsHighwayBridge = false }; }
public InspectionReportService(IInspectionReportRepository inspectionReportRepository, IUnitOfWork unitOfWork) { this._inspectionReportRepository = inspectionReportRepository; this._unitOfWork = unitOfWork; }