public async Task Test_Users_SaveKycDocument() { try { UserNaturalDTO john = TestHelper.GetJohn(); KycDocumentDTO kycDocument = TestHelper.GetJohnsKycDocument(); Assembly assembly = Assembly.GetExecutingAssembly(); FileInfo assemblyFileInfo = new FileInfo(assembly.Location); FileInfo fi = assemblyFileInfo.Directory.GetFiles("TestKycPageFile.png").Single(); await _objectToTest.CreateKycPage(john.Id, kycDocument.Id, fi.FullName); KycDocumentPutDTO kycDocumentPut = new KycDocumentPutDTO { Status = KycStatus.VALIDATION_ASKED }; KycDocumentDTO result = _objectToTest.UpdateKycDocument(john.Id, kycDocumentPut, kycDocument.Id).Result; Assert.NotNull(result); Assert.True(kycDocument.Type == result.Type); Assert.True(result.Status == KycStatus.VALIDATION_ASKED); } catch (Exception ex) { Assert.True(false, ex.Message); } }