public void testExistByPowderName() { repository.deleteAll(); repository.save(new Powder("a")); Assert.IsTrue(repository.existsByPowderName("a")); Assert.IsFalse(repository.existsByPowderName("b")); }
public bool contains(string powderName) { return(powderRepository.existsByPowderName(powderName)); }