public void When_getting_all_User_then_they_are_obtained_from_simpledb()
        {
            // Arrange

            var usersInDb = Builder<User>.CreateListOfSize(10).Build();
            var simpleDB = MockRepository.GenerateStub<SimpleDBProvider<User, string>>();
            simpleDB.Stub(sdb => sdb.Get()).Return(usersInDb);

            var provider = new AmazonSimpleDbUserProvider(simpleDB);

            // Act
            var result = provider.Get();

            // Assert
            Assert.That(result, Is.EquivalentTo(usersInDb));
        }
        public void When_getting_a_User_then_the_User_is_obtained_from_simpledb()
        {
            // Arrange
            var userId = Guid.NewGuid().ToString();

            var userInDb = Builder<User>.CreateNew().Build();
            var simpleDb = MockRepository.GenerateStub<SimpleDBProvider<User,string>>();
            simpleDb.Stub(sdb => sdb.Get(userId)).Return(userInDb);

            var provider = new AmazonSimpleDbUserProvider(simpleDb);

            // Act
            var result = provider.Get(userId);

            // Assert
            Assert.That(result,Is.EqualTo(userInDb));
        }