public void TestCreatePartiallySpecifiedRequest()
 {
     var request = new CreateStoreRequestObject("foo");
     Assert.That(request, Has.Property("StoreName").EqualTo("foo"));
     Assert.That(request.PersistenceType, Is.EqualTo(-1));
     Assert.That(request.GetBrightstarPersistenceType(), Is.Null);
 }
        public void TestCreateFullySpecifiedRequest()
        {
            var request = new CreateStoreRequestObject("foo", PersistenceType.AppendOnly);
            Assert.That(request, Has.Property("StoreName").EqualTo("foo"));
            Assert.That(request.PersistenceType, Is.EqualTo(0));
            Assert.That(request.GetBrightstarPersistenceType(), Is.EqualTo(PersistenceType.AppendOnly));

            request = new CreateStoreRequestObject("foo", PersistenceType.Rewrite);
            Assert.That(request, Has.Property("StoreName").EqualTo("foo"));
            Assert.That(request.PersistenceType, Is.EqualTo(1));
            Assert.That(request.GetBrightstarPersistenceType(), Is.EqualTo(PersistenceType.Rewrite));
        }