public async Task CheckingExistence_WillReturnFalse_WhenNotExists(string id) { // Arrange sut = new BrilligRepository(_db); // Act bool result = await sut.Exists(id); // Assert Assert.False(result); }
public async Task CheckingExistenceOfMultiples_WillReturnFalse_WhenAnyNotExist(string id1, string id2, string id3) { // Arrange sut = new BrilligRepository(_db); // Act bool result = await sut.Exists(id1, id2, id3); // Assert Assert.False(result); }
public async Task CheckingExistenceOfMultiples_WillReturnTrue_WhenAllExist(string id1, string id2, string id3) { // Arrange await _db.Database.EnsureDeletedAsync(); await _db.Database.EnsureCreatedAsync(); sut = new BrilligRepository(_db); // Act bool result = await sut.Exists(id1, id2, id3); // Assert Assert.True(result); }