// // GET: /Daffodil/ public ActionResult Index() { var config = this.AwsConfig; var provider = new SimpleDbProvider(config); var model = provider.ReadDaffodils(); return View(model); }
public void ReadDaffodils_successfully_reads() { // Arrange var config = this.AwsConfig; var provider = new SimpleDbProvider(config); var daffodil = new Daffodil { Id = "foo", Data = "bar" }; provider.Persist(daffodil); // Act var daffodilsFromDb = provider.ReadDaffodils(); // Assert Assert.That(daffodilsFromDb.Count, Is.GreaterThanOrEqualTo(1)); }