public void Should_Return_KeyInt1_Property() { var repos = new TestMongoDbRepository <ObjectKeys, int>(); var propInfo = repos.TestGetPrimaryKeyPropertyInfo(); propInfo.PropertyType.ShouldEqual(typeof(int)); propInfo.Name.ShouldEqual("KeyInt1"); }
public void Should_Return_KeyInt1_Property() { // TO DEL var _databaseName = MongoUrl.Create("mongodb://localhost/test").DatabaseName; var cli = new MongoClient("mongodb://localhost/test"); var repos = new TestMongoDbRepository <ObjectKeys, int>(); var propInfo = repos.TestGetPrimaryKeyPropertyInfo(); propInfo.PropertyType.ShouldEqual(typeof(int)); propInfo.Name.ShouldEqual("KeyInt1"); }