41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using AyCode.Database.Tests;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using AyCode.Database.DataLayers.Users;
|
|
using TIAM.Database.DataLayers.ServiceProviders;
|
|
using TIAM.Database.DataLayers.Users;
|
|
using TIAM.Database.DbContexts;
|
|
|
|
namespace TIAM.Database.Test
|
|
{
|
|
[TestClass]
|
|
public class ServiceProviderDalTest : DatabaseTestModelBase<ServiceProviderDbContext>
|
|
{
|
|
private ServiceProviderDal _serviceProviderDal;
|
|
|
|
[TestInitialize]
|
|
public void Setup()
|
|
{
|
|
_serviceProviderDal = new ServiceProviderDal();
|
|
}
|
|
|
|
[TestCleanup]
|
|
public void TearDown()
|
|
{ }
|
|
|
|
[TestMethod]
|
|
//[DataRow(Guid.Parse("540271F6-C604-4C16-8160-D5A7CAFEDF00")]
|
|
public async Task GetPermissionContextMappingByContext_ReturnsPermissionContextMapping_WhenPermissionContextMappingExists()//(Guid contextId)
|
|
{
|
|
var contextId = Guid.Parse("540271F6-C604-4C16-8160-D5A7CAFEDF00");
|
|
|
|
var permMapping = await _serviceProviderDal.GetPermissionContextMappingByContextIdAsync(contextId);
|
|
|
|
Assert.IsNotNull(permMapping);
|
|
}
|
|
}
|
|
}
|