﻿using System.Threading.Tasks;
using NUnit.Framework;

namespace GitUITests.Avatars
{
    public abstract class AvatarCacheTestBase : AvatarTestBase
    {
        [Test]
        public async Task GetAvatarAsync_returns_correct_image()
        {
            Assert.AreSame(_img1, await _cache.GetAvatarAsync(_email1, _name1, _size));
            Assert.AreSame(_img2, await _cache.GetAvatarAsync(_email2, _name2, _size));
            Assert.AreSame(_img3, await _cache.GetAvatarAsync(_email3, _name3, _size));
        }
    }
}
