public void WhenUserGetUserIdWhereAlbumHasPhotoWithTitle(string photoTitle) { var albumId = _dataContainer.GetAlbumId(photoTitle); var album = _ui.Pages.Albums.GetAlbumByAlbumId(albumId); _dataContainer.AddUserId(photoTitle, album.UserId); }
public void WhenUserGetUserIdsWithNames(Table table) { var names = table.ToList(); foreach (var name in names) { var user = _ui.Pages.Users.GetUser(x => x.Name == name); _dataContainer.AddUserId(name, user.Id); } }
public void WhenUserGetUserIdWhoHasAPostWithTitle(string title) { var userId = _ui.Pages.Posts.GetUserIdByTitle(title); _dataContainer.AddUserId(title, userId); }