public void when_creating_a_container() { var createContainer = new CreateContainer("http://storageurl", "containername"); var mock = new Mock<ICloudFilesRequest>(); createContainer.Apply(mock.Object); should("append container name to storage url",()=>createContainer.CreateUri().ToString().Is("http://storageurl/containername")); should("use PUT method", () => mock.VerifySet(x => x.Method = "PUT") ); }
protected override void SetupContext() { createContainer = new CreateContainer("http://storageurl", "containername"); mock = new Mock<ICloudFilesRequest>(); createContainer.Apply(mock.Object); }