public void TestDeleteBacklogForUser() { var repo = new UserRepo(TestRootDir, UsersTestJson, g => 3); var user = new User { Id = 0, PasswordHash = "x", Username = "******", UserRole = UserRole.Guest }; var status = repo.AddUser(user); status.Should().BeOfType <Success>(); const string backlogId = "newrepoid"; var addStatus = repo.AddUserBacklogId(3, backlogId); addStatus.Should().BeOfType <Success>(); var(getStatus, backlogIds) = repo.GetUserBacklogIds(3); getStatus.Should().BeOfType <Success>(); backlogIds.Contains(backlogId).Should().BeTrue(); var deleteStatus = repo.DeleteUserBacklogId(3, backlogId); deleteStatus.Should().BeOfType <Success>(); (getStatus, backlogIds) = repo.GetUserBacklogIds(3); getStatus.Should().BeOfType <Success>(); backlogIds.Contains(backlogId).Should().BeFalse(); }