This commit is contained in:
@@ -89,6 +89,18 @@ namespace raven_integration
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void UserWithActivityShouldNotBeDeleteable()
|
||||
{
|
||||
ApiResponse a = await Util.DeleteAsync("User/1", await Util.GetTokenAsync("manager", "l3tm3in"));
|
||||
Util.ValidateErrorCodeResponse(a, 2200, 400);
|
||||
a.ObjectResponse["error"]["details"][0]["message"].Value<string>().Should().Contain("[E_ACTIVE_NOT_DELETABLE]");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test not found
|
||||
/// </summary>
|
||||
@@ -436,7 +448,7 @@ namespace raven_integration
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
@@ -454,8 +466,8 @@ namespace raven_integration
|
||||
|
||||
for (int i = 0; i < ItemCount - 1; i++)
|
||||
{
|
||||
var firstName = a.ObjectResponse["data"][i]["name"].Value<string>().Replace(" ","");
|
||||
var secondName = a.ObjectResponse["data"][i + 1]["name"].Value<string>().Replace(" ","");
|
||||
var firstName = a.ObjectResponse["data"][i]["name"].Value<string>().Replace(" ", "");
|
||||
var secondName = a.ObjectResponse["data"][i + 1]["name"].Value<string>().Replace(" ", "");
|
||||
int comparison = String.Compare(firstName, secondName, comparisonType: StringComparison.OrdinalIgnoreCase);
|
||||
comparison.Should().BeNegative();
|
||||
}
|
||||
@@ -504,7 +516,7 @@ namespace raven_integration
|
||||
|
||||
d = new JObject();
|
||||
d.name = Util.Uniquify(NameStart);
|
||||
d.active = false;
|
||||
d.active = false;
|
||||
d.login = Util.Uniquify("LOGIN");
|
||||
d.password = Util.Uniquify("PASSWORD");
|
||||
d.roles = 0;//norole
|
||||
|
||||
Reference in New Issue
Block a user