public void AddAndGetBaking() { Baking c = new Baking(999, 12.5, BakingType.bagel); Assert.AreEqual(repository.GetBakingsNumber(), 4); repository.AddBaking(c); Assert.AreEqual(repository.GetBakingsNumber(), 5); Baking temp = repository.GetBaking(999); Assert.AreEqual(temp, c); }
public void AddBaking(Baking baking) { repository.AddBaking(baking); }