示例#1
0
        public void SummaryCommandServiceBase_AddSummaryToCase()
        {
            CreateArrestSummary();
            var summaryQueryService = GetDependency <ISummaryQueryService>();

            Assert.IsInstanceOfType(summaryQueryService, typeof(ISummaryQueryService));
            Guid arrestSummaryInfoCaseId = summaryQueryService.GetSummaryInfo(summaryGuid).Case.CaseId;

            Assert.IsNotNull(arrestSummaryInfoCaseId);

            var summariesUnitOfWork = GetDependency <ISummariesUnitOfWork>();

            Assert.IsInstanceOfType(summariesUnitOfWork, typeof(ISummariesUnitOfWork));
            var masterIndexService = GetDependency <IMasterIndexService>();

            Assert.IsInstanceOfType(masterIndexService, typeof(IMasterIndexService));
            var arrestSummaryCommandService = new ArrestSummaryCommandService(
                summariesUnitOfWork,
                masterIndexService,
                Mock.Of <ILog>());

            try
            {
                arrestSummaryCommandService.AddSummaryToCase(summaryGuid, arrestSummaryInfoCaseId);
                Assert.Fail();
            }
            catch (Exception exception)
            {
                Assert.IsTrue(exception is NotImplementedException);
            }
        }
 public void AddSummaryToCase()
 {
     _arrestSummaryCommandService.AddSummaryToCase(It.IsAny <Guid>(), It.IsAny <Guid>());
 }