dotnet-object-storage/PoweredSoft.ObjectStorage.MongoDB.Tests/CollectionNameAttributeTests.cs

21 lines
621 B
C#
Raw Normal View History

2019-02-12 17:39:16 -05:00
using System;
using MongoDB.Driver;
using PoweredSoft.ObjectStorage.MongoDB.Tests.Mock;
using PoweredSoft.ObjectStorage.MongoDB.Tests.Mock.Dal;
using Xunit;
namespace PoweredSoft.ObjectStorage.MongoDB.Tests
{
public class CollectionNameAttributeTests
{
[Fact]
public void TestingGetCollection()
{
2019-02-12 23:39:55 -05:00
var objectStorageClient = MongoDatabaseFactory.GetObjectStorageContext();
2019-02-12 17:39:16 -05:00
var collection = objectStorageClient.GetCollection<Contact>();
Assert.NotNull(collection);
Assert.NotNull(collection.CollectionName);
}
}
}