public void OnlyRightSideExists() { int id = 1; rightRepository.Add(CreateBase64Data(id, "Test")); JsonResponse response = diffService.Compare(id); Assert.AreEqual(response.Result, "Id " + id + " does not exists in Left side"); }
public IHttpActionResult Right(int id, HttpRequestMessage value) { var base64Text = value.Content.ReadAsStringAsync().Result; Base64Data product = new Base64Data(); product.Id = id; product.Base64Value = base64Text; repositoryRight.Add(product); return(Ok("Data saved")); }