示例#1
0
        public void IncidentReportQueryService_FindIncidentReport()
        {
            Guid reportId = GetReportId();

            Assert.IsInstanceOfType(reportId, typeof(Guid));
            Assert.AreNotEqual(reportId, Guid.Empty);

            // Find Incident Report
            var iReportQueryService = GetDependency <IIncidentReportQueryService>();

            Assert.IsInstanceOfType(iReportQueryService, typeof(IIncidentReportQueryService));
            IncidentReportDetails reportDetails = iReportQueryService.FindIncidentReport(reportId);

            Assert.IsNotNull(reportDetails);
            Assert.AreEqual(reportId, reportDetails.Id);
        }
示例#2
0
 public void Update(IncidentReportDetails report)
 {
     _incidentReportCommandService.UpdateReport(report);
 }