コード例 #1
0
        public void WhenUserGetUserIdWhereAlbumHasPhotoWithTitle(string photoTitle)
        {
            var albumId = _dataContainer.GetAlbumId(photoTitle);
            var album   = _ui.Pages.Albums.GetAlbumByAlbumId(albumId);

            _dataContainer.AddUserId(photoTitle, album.UserId);
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
        public void WhenUserGetUserIdWhoHasAPostWithTitle(string title)
        {
            var userId = _ui.Pages.Posts.GetUserIdByTitle(title);

            _dataContainer.AddUserId(title, userId);
        }