public void DapiHelper_Insert(string Namespace, string actionName) { // Arrange Dictionary <int, string> parametersToUpdate = new Dictionary <int, string> { { 0, _workspaceId.ToString() }, { 1, new Guid().ToString() }, { 2, new Random().Next(100).ToString() } }; Sut.UpdateJsonParameters(Namespace, actionName, parametersToUpdate); string json = Sut.GetJson(Namespace, actionName); // Act HttpResponseMessage result = Sut.Run(json, Namespace, actionName); // Assert Assert.IsTrue(result.IsSuccessStatusCode); }