public static void Count_Returns_CountWithOwnSession() { var repo = new BraveRepository(Factory); var result = 0; Assert.DoesNotThrow(() => result = repo.Count <ITestSession>()); Assert.That(result, Is.Positive); }
public static void Count_Returns_Count() { var repo = new BraveRepository(Factory); var result = 0; Assert.DoesNotThrow(() => result = repo.Count(Connection)); Assert.That(result, Is.Positive); }
public static void Count_Returns_CountUnitOfWork() { var repo = new BraveRepository(Factory); var result = 0; using (var uow = Connection.UnitOfWork(IsolationLevel.Serializable)) { Assert.DoesNotThrow(() => result = repo.Count(uow)); Assert.That(result, Is.Positive); } }