public void TestNullPath()
    {
      TestDelegate action = () =>
      {
        var parameters = new DeleteItemByPathParameters(this.sessionConfig, this.scopeParameters, this.database, null);

        this.builder.GetUrlForRequest(parameters);
      };

      Assert.Throws<ArgumentNullException>(action);
    }
    public void TestCorrectPathWithDatabase()
    {
      var parameters = new DeleteItemByPathParameters(this.sessionConfig, this.scopeParameters, this.database, this.path);

      var url = this.builder.GetUrlForRequest(parameters);

      Assert.AreEqual("http://testurl/-/item/v1%2fsitecore%2fcontent%2fhome%2fandroid%2ffolder%20for%20deleting%2f1?sc_database=master", url);
    }
    public void TestCorrectPathWithScope()
    {
      scopeParameters.AddScope(ScopeType.Children);

      var parameters = new DeleteItemByPathParameters(this.sessionConfig, this.scopeParameters, null, this.path);

      var url = this.builder.GetUrlForRequest(parameters);

      Assert.AreEqual("http://testurl/-/item/v1%2fsitecore%2fcontent%2fhome%2fandroid%2ffolder%20for%20deleting%2f1?scope=c", url);
    }