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

21 lines
624 B
C#
Raw Permalink Normal View History

2019-02-12 17:39:16 -05:00
using System;
2019-09-20 15:33:54 -04:00
using MongoDB.Driver;
using PoweredSoft.ObjectStorage.MongoDB.Tests.Mock;
using PoweredSoft.ObjectStorage.MongoDB.Tests.Mock.Dal;
2019-02-12 17:39:16 -05:00
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);
}
}
}