public void IsAvailable_WhenInvoked_ChecksForRequiredObjects()
        {
            InvokeIsAvailable(new[] { "object1", "object2" });

            databaseConnectionServiceMock.Received().ExecuteScalar("SELECT OBJECT_ID('object1')");
            databaseConnectionServiceMock.Received().ExecuteScalar("SELECT OBJECT_ID('object2')");
        }
        public void AddUsers_WhenInvoked_ReusesCommands()
        {
            SetUpDatabaseConnectionCreateDbCommandMock();

            InvokeAddUsers();

            databaseConnectionServiceMock.Received(3).CreateDbCommand();
        }