public static async Task ThenSuppliersExist(Table table) { var expectedSuppliers = table.CreateSet <SupplierTable>().Select(s => new { s.Id, Summary = string.IsNullOrWhiteSpace(s.Summary) ? null : s.Summary, SupplierUrl = string.IsNullOrWhiteSpace(s.SupplierUrl) ? null : s.SupplierUrl, }); var suppliers = await SupplierEntity.FetchAllAsync(); suppliers.Select(s => new { s.Id, s.Summary, s.SupplierUrl, }).Should().BeEquivalentTo(expectedSuppliers); }
public static async Task GivenASolutionSlnDoesNotExist(string supplierId) { var supplierList = await SupplierEntity.FetchAllAsync(); supplierList.Select(s => s.Id).Should().NotContain(supplierId); }