public void TestInsertWithoutTracker([Values("test insert")] string name) => _efContext .Arrange(c => CreateLinqToDbContext(c)) .Act(c => c.Insert(new Entity { Name = name })) .Assert(id => _efContext.Entitites.Single(e => e.Id == id).Name.Should().Be(name));
public void Test_after_applying_product_price_is_not_updated() { _testContext.Arrange("classic", "blah", 3, 4); _testContext.ActApply(); _testContext.AssertProductPriceIsNotUpdated(); }
public void Test_is_applicable(string applicableProductId, string productId, int numberOfProducts, int x, int y, bool expected) { _testContext.Arrange(applicableProductId, productId, numberOfProducts, x, y); _testContext.ActIsApplicable(); _testContext.AssertIsApplicable(expected); }
public void Test_checkout_total_when_multiple_pricing_rules_apply() { _context.Arrange(); _context.Act(); _context.AssertTotalAmountIsCorrect(); }