dotnet-object-storage/PoweredSoft.ObjectStorage.MongoDB.Tests/CollectionNameAttributeTests.cs
David Lebee b789b367c2 initial
2019-02-12 17:39:16 -05:00

21 lines
620 B
C#

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()
{
var objectStorageClient = MongoDatabaseFactory.GetObjectStorageClient();
var collection = objectStorageClient.GetCollection<Contact>();
Assert.NotNull(collection);
Assert.NotNull(collection.CollectionName);
}
}
}