public void TestRepositoryBaseGetNextId_EmptyTable()
        {
            using (var testDbInfo = SetupUtil.CreateFakeDb())
            {
                //Arrange
                Mock <ILog> log  = new Mock <ILog>();
                var         repo = new FakeRepositoryBase(testDbInfo.ConnectionString, log.Object);

                //Act
                long nextId = repo.GetNextId();

                //Assert
                Assert.Equal(1, nextId);
            }
        }
        public void TestRepositoryBaseGetNextId()
        {
            using (var testDbInfo = SetupUtil.CreateFakeDb())
            {
                //Arrange
                Mock <ILog> log = new Mock <ILog>();

                Mock <FakeDto> mockDto = new Mock <FakeDto>();
                mockDto.SetupGet(d => d.Name).Returns("Test Data");

                var repo = new FakeRepositoryBase(testDbInfo.ConnectionString, log.Object);
                repo.InsertProxy(mockDto.Object);

                //Act
                long nextId = repo.GetNextId();

                //Assert
                Assert.Equal(2, nextId);
            }
        }