public void ApkAanvraagLogRepositoryFindAllTest()
        {
            // Arrange - Act
            using (var repo = new ApkAanvraagLogRepository(new RdwContext(_options)))
            {
                var apkAanvraagLog1 = new ApkAanvraagLog()
                {
                    CorrelationId   = Guid.NewGuid().ToString(),
                    RequestMessage  = "RequestMessage 1",
                    ResponseMessage = "ResponseMessage 1"
                };
                repo.Insert(apkAanvraagLog1);
                var apkAanvraagLog2 = new ApkAanvraagLog()
                {
                    CorrelationId   = Guid.NewGuid().ToString(),
                    RequestMessage  = "RequestMessage 2",
                    ResponseMessage = "ResponseMessage 2"
                };
                repo.Insert(apkAanvraagLog2);
            }

            // Assert
            using (var repo = new ApkAanvraagLogRepository(new RdwContext(_options)))
            {
                Assert.AreEqual(2, repo.Count());
            }
        }
        public void ApkAanvraagLogRepositoryUpdateTest()
        {
            // Arrange
            string updatedRequestMessage  = "Updated requestMessage";
            string updatedResponseMessage = "Updated responseMessage";

            using (var repo = new ApkAanvraagLogRepository(new RdwContext(_options)))
            {
                repo.Insert(new ApkAanvraagLog()
                {
                    CorrelationId   = Guid.NewGuid().ToString(),
                    RequestMessage  = "RequestMessage",
                    ResponseMessage = "ResponseMessage"
                });
            }

            // Act
            using (var repo = new ApkAanvraagLogRepository(new RdwContext(_options)))
            {
                repo.Update(new ApkAanvraagLog()
                {
                    Id              = 1,
                    RequestMessage  = updatedRequestMessage,
                    ResponseMessage = updatedResponseMessage
                });
            }

            // Assert
            using (var repo = new ApkAanvraagLogRepository(new RdwContext(_options)))
            {
                Assert.AreEqual(1, repo.Count());
                Assert.AreEqual(updatedRequestMessage, repo.Find(1).RequestMessage);
                Assert.AreEqual(updatedResponseMessage, repo.Find(1).ResponseMessage);
            }
        }
        public void ApkAanvraagLogRepositoryAddTest()
        {
            // Arrange - Act
            using (var repo = new ApkAanvraagLogRepository(new RdwContext(_options)))
            {
                repo.Insert(new ApkAanvraagLog()
                {
                    CorrelationId = Guid.NewGuid().ToString()
                });
            }

            // Assert
            using (var repo = new ApkAanvraagLogRepository(new RdwContext(_options)))
            {
                Assert.AreEqual(1, repo.Count());
            }
        }
        public void ApkAanvraagLogRepositoryDeleteTest()
        {
            // Arrange
            using (var repo = new ApkAanvraagLogRepository(new RdwContext(_options)))
            {
                var apkAanvraagLog = new ApkAanvraagLog()
                {
                    CorrelationId   = Guid.NewGuid().ToString(),
                    RequestMessage  = "RequestMessage",
                    ResponseMessage = "ResponseMessage"
                };
                // Act
                repo.Insert(apkAanvraagLog);
                repo.Delete(1);
            }

            // Assert
            using (var repo = new ApkAanvraagLogRepository(new RdwContext(_options)))
            {
                Assert.AreEqual(0, repo.Count());
            }
        }