public void ProcessMasterIndexes_Event_AsEntity() { _addressProcessor.Setup(mock => mock.Process(It.IsAny <Location>())); PublicSafetyEvent entity = new PublicSafetyEvent(Guid.NewGuid(), Guid.NewGuid(), Guid.NewGuid()); masterIndexServiceObj.ProcessMasterIndexes <PublicSafetyEvent>(entity); _addressProcessor.VerifyAll(); }
public void FindIncidentEvent() { //Arrange var publicSafetyEvent = new PublicSafetyEvent(DataEntryUnitTestFixture.IdentityId, DataEntryUnitTestFixture.AgencyDetails.Id, Guid.NewGuid()); _reportsUnitOfWork.Setup(mock => mock.Find <PublicSafetyEvent>(It.IsAny <Guid>(), It.IsAny <TrackingMode>(), It.IsAny <ThrowIf>())).Returns(publicSafetyEvent); //Act var result = _incidentReportQueryService.FindIncidentEvent(It.IsAny <Guid>()); //Assert result.Should().NotBeNull(); }
public void FindSummaryAgencyId() { //Arrange var publicSafetyEvent = new PublicSafetyEvent(DataEntryUnitTestFixture.IdentityId, DataEntryUnitTestFixture.AgencyDetails.Id, Guid.NewGuid()); _summariesUnitOfWork.Setup(mock => mock.Find <PublicSafetyEvent>(It.IsAny <Guid>(), It.IsAny <TrackingMode>(), It.IsAny <ThrowIf>())).Returns(publicSafetyEvent); //Act var result = _otherEventSummaryQueryService.FindAgencyId(publicSafetyEvent.Id); //Assert result.Should().NotBeEmpty(); result.Should().Be(DataEntryUnitTestFixture.AgencyDetails.Id); }
public void FindOtherEventSummaryEvent() { //Arrange var publicSafetyEvent = new PublicSafetyEvent(DataEntryUnitTestFixture.IdentityId, DataEntryUnitTestFixture.AgencyDetails.Id, Guid.NewGuid()); _summariesUnitOfWork.Setup(mock => mock.Find <PublicSafetyEvent>(It.IsAny <Guid>(), It.IsAny <TrackingMode>(), It.IsAny <ThrowIf>())).Returns(publicSafetyEvent); //Act var result = _otherEventSummaryQueryService.FindOtherEventEvent(publicSafetyEvent.Id); //Assert result.Should().NotBeNull(); result.Should().BeOfType(typeof(OtherEvent.OtherEventEvent)); _summariesUnitOfWork.Verify(mock => mock.Find <PublicSafetyEvent>(It.IsAny <Guid>(), It.IsAny <TrackingMode>(), It.IsAny <ThrowIf>()), Times.Once); }