public async Task <string> Retrieve(string microtingUuid, string microtingCheckUuid, int siteId) { if (microtingUuid == "555") { return(await _testHelperReturnXml.CreateMultiPictureXMLResult(false)); } else { return("failed"); } }
public string Retrieve(string microtingUuid, string microtingCheckUuid, int siteId) { if (microtingUuid == "MultiPictureTestInMultipleChecks") { return(testHelperReturnXml.CreateMultiPictureXMLResult(false)); } else { return("failed"); } }
public async Task Core_CheckStatusByMicrotingUid_DoesCreateCaseAndFieldValues() { // Arrange string microtingUuid = await testHelperReturnXml.CreateMultiPictureXMLResult(true); // Act await sut.CheckStatusByMicrotingUid(int.Parse(microtingUuid)).ConfigureAwait(false); // Assert List <cases> caseMatches = dbContext.cases.AsNoTracking().ToList(); List <uploaded_data> udMatches = dbContext.uploaded_data.AsNoTracking().ToList(); List <field_values> fvMatches = dbContext.field_values.AsNoTracking().ToList(); Assert.NotNull(caseMatches); Assert.NotNull(udMatches); Assert.NotNull(fvMatches); Assert.AreEqual(3, caseMatches.Count()); Assert.AreEqual(5, udMatches.Count()); Assert.AreEqual(5, fvMatches.Count()); }
public void Core_CheckStatusByMicrotingUid_DoesCreateCaseAndFieldValues() { //Arrance string microtingUuid = testHelperReturnXml.CreateMultiPictureXMLResult(true); //Act sut.CheckStatusByMicrotingUid(microtingUuid); //Assert List <cases> caseMatches = DbContext.cases.AsNoTracking().ToList(); List <uploaded_data> udMatches = DbContext.uploaded_data.AsNoTracking().ToList(); List <field_values> fvMatches = DbContext.field_values.AsNoTracking().ToList(); Assert.NotNull(caseMatches); Assert.NotNull(udMatches); Assert.NotNull(fvMatches); Assert.AreEqual(3, caseMatches.Count()); Assert.AreEqual(5, udMatches.Count()); Assert.AreEqual(5, fvMatches.Count()); }