﻿using Donrak.AspNet.Identity.RavenDB.Stores;
using VisualStudio.TestTools.UnitTesting;

namespace Donrak.AspNet.Identity.RavenDB.Test
{
    [TestClass]
    public class RoleStoreTests
    {
        private DatabaseFixture _fixture;
        public RoleStoreTests(DatabaseFixture fixture)
        {
            _fixture = fixture;
        }
        
        [TestMethod]
        public void Should_Create_Role()
        {
            using (var session = _fixture.Store.OpenAsyncSession())
            {
                var roleStore = new RoleStore(session);
                roleStore.CreateAsync(new Entities.ApplicationRole { Name = "Can edit user", NormalizedName = "CAN_EDIt_USER" });
            }
        }
    }
}
