﻿using System;
using Xunit;

namespace SpotifyNotifications.Web.Tests
{
    public class SpotifyExtensionsTests : TestBase
    {
        [Fact]
        public void SpotifyExtensions_BuilderIsNull_ReturnsException()
        {
            Assert.Throws<ArgumentNullException>(() => SpotifyExtensions.UseSpotify(null));
        }

        [Fact(Skip = "Not sure i really need to test the builde runs a middleware")]
        public void SpotifyExtensions_BuilderIsValid_ReturnCorrectMiddleware()
        {
            var exception = Record.Exception(() => SpotifyExtensions.UseSpotify(GetMockApplicationBuilder().Object));
            Assert.Null(exception);
        }
    }
}
