public async Task IsSupplementExistingByIdAndName_WithOtherSupplementIdAndNonExistingSupplementName_ShouldReturnFalse() { // Arrange FitStoreDbContext database = this.Database; DatabaseHelper.SeedData(database); ISupplementService supplementService = new SupplementService(database); // Act bool result = await supplementService.IsSupplementExistingByIdAndName(firstSupplementId, nonExistingSupplementName); // Assert result.Should().Be(false); }
public async Task IsSupplementExistingByIdAndName_WithSupplementIdAndSupplementName_ShouldReturnTrue() { // Arrange FitStoreDbContext database = this.Database; DatabaseHelper.SeedData(database); ISupplementService supplementService = new SupplementService(database); // Act bool result = await supplementService.IsSupplementExistingByIdAndName(secondSupplementId, supplementName); // Assert result.Should().Be(true); }