public void Can_delete_and_empty_stores_in_cloud() { CloudInfrastructure cloud = new CloudInfrastructure(); cloud.CreateStore("myFiles"); cloud.CreateStore("myImages"); cloud.UploadDocument("myImages", "picture.jpeg", "profile.png"); cloud.DeleteStore("myFiles"); // delete a store Assert.AreEqual("myImages:picture.jpeg, profile.png", cloud.ListStores()); cloud.EmptyStore("myImages"); // empty a store Assert.AreEqual("myImages:empty", cloud.ListStores()); // an empty store is display as "empty" }
public void can_create_multiple_stores_in_cloud() { CloudInfrastructure cloud = new CloudInfrastructure(); cloud.CreateStore("myFiles"); cloud.CreateStore("myImages"); cloud.UploadDocument("myImages", "picture.jpeg", "profile.png"); Assert.AreEqual("myFiles:empty||myImages:picture.jpeg, profile.png", cloud.ListStores()); }
public void Can_create_a_store_in_cloud() { // This is the main CloudInfrastructure class. You will need to put your code there. // The CloudInfrastructure class can also call other classes that you can create if needed. CloudInfrastructure cloud = new CloudInfrastructure(); cloud.CreateStore("myFiles"); cloud.UploadDocument("myFiles", "book.pdf"); Assert.AreEqual("myFiles:book.pdf", cloud.ListStores()); // make sure the cloud.listStores() method return the expected output }