public void CreateTransaction_WhenInvoked_LogsMethodInvoked()
        {
            systemUnderTest.CreateTransaction();

            Received.InOrder(() =>
            {
                loggingServiceMock.LogMethodInvoked(nameof(systemUnderTest.CreateTransaction));
                databaseConnectionServiceMock.CreateTransaction();
            });
        }
        public void CreateTransaction_WhenInvoked_ReturnsTransaction()
        {
            var expected = Substitute.For <DbTransaction>();

            statsDownloadDatabaseServiceMock.CreateTransaction().Returns(expected);

            DbTransaction actual = systemUnderTest.CreateTransaction();

            Assert.That(actual, Is.EqualTo(expected));
        }