public void It_gets_clients() { List <IdentityClient> clients; using (var transaction = _database.GetTransaction()) { CreateClient(client1); CreateClient(client2); clients = _clientTable.GetClients().ToList(); transaction.Dispose(); } Assert.AreEqual(3, clients.Count); }