public void Persist_persists_without_error()
 {
     var config = this.AwsConfig;
     var provider = new SimpleDbProvider(config);
     var daffodil = new Daffodil {Id = "foo2", Data = "bar2"};
     provider.Persist(daffodil);
 }
 //
 // GET: /Daffodil/
 public ActionResult Index()
 {
     var config = this.AwsConfig;
     var provider = new SimpleDbProvider(config);
     var model = provider.ReadDaffodils();
     return View(model);
 }
        static void Main(string[] args)
        {
            var config = AwsConfig;
            var provider = new QueueProvider(config);
            var daffodil = provider.ReadMessage("daffodils");
            // persist to SimpleDB

            var simpleDbProvider = new SimpleDbProvider(config);
            simpleDbProvider.Persist(daffodil);
        }
        public void Read_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 daffodilFromDb = provider.Read("daffodil", "foo");

            // Assert
            Assert.That(daffodilFromDb.Data, Is.EqualTo("bar"));
        }
        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));
        }