public void GetIncidentById()
        {
            // Arrange.
            var testData   = GetTestData();
            var testEntity = testData.FirstOrDefault(e => e.Id == 1);

            var mockDbSet = new Mock <DbSet <Incident> >();

            mockDbSet
            .As <IQueryable <Incident> >()
            .Setup(m => m.GetEnumerator())
            .Returns(testData.AsQueryable().GetEnumerator);
            mockDbSet
            .Setup(m => m.Find(It.IsAny <object[]>()))
            .Returns <object[]>(ids => testData.FirstOrDefault(d => d.Id == (int)ids[0]));

            var mockDbContext = new Mock <BankDbContext>();

            mockDbContext
            .Setup(m => m.Incidents)
            .Returns(mockDbSet.Object);

            var incidentsController = new IncidentsController(mockDbContext.Object);

            // Act.
            var actionResult = incidentsController.GetIncident(testEntity.Id) as OkNegotiatedContentResult <Incident>;

            // Assert.
            Assert.IsNotNull(actionResult);
            Assert.IsNotNull(actionResult.Content);
            Assert.IsInstanceOfType(actionResult, typeof(OkNegotiatedContentResult <Incident>));
            Assert.AreEqual(testEntity, actionResult.Content);
        }