public void TestGetProfilePhotosData() { List<ProfilePhoto> results = new List<ProfilePhoto>(); ProfilePhoto request = new ProfilePhoto { UserID = 137179126684623 }; LogHelper.LogInformation("Here we go..."); try { var dmgr = new DataManager(); results = dmgr.GetProfilePhotosById(request); } catch (Exception ex) { LogHelper.LogError(ex, "What Happened?"); results = null; } Assert.IsTrue(results != null && results.Count > 0); }
public void TestGetProfilePhotosLogic() { ProfilePhotos results = new ProfilePhotos { ProfilePhotoList = new List<ProfilePhoto>() }; ProfilePhoto request = new ProfilePhoto { UserID = 137179126684623 }; LogHelper.LogInformation("Here we go..."); try { var logic = new ProfileLogic(); results = logic.GetPhotosByUserID(request); } catch (Exception ex) { LogHelper.LogError(ex, "What Happened?"); results = null; } Assert.IsTrue(results != null && results.ProfilePhotoList != null && results.ProfilePhotoList.Count > 0); }
public void TestGetPrimaryPhotoLogic() { ProfilePhoto result = new ProfilePhoto(); ProfilePhoto request = new ProfilePhoto { UserID = 137179126684623 }; LogHelper.LogInformation("Here we go..."); try { var logic = new ProfileLogic(); result = logic.GetPrimaryProfilePhoto(request); } catch (Exception ex) { LogHelper.LogError(ex, "What Happened?"); result = null; } Assert.IsTrue(result != null); }