public void When_Set_IdField_It_Is_Set_As_Primary_Key() { var customerMap= new DocumentMap<Customer>(); customerMap.Id(c => c.Id); Assert.AreEqual("Id",customerMap.IdWrapper.Name); }
public void When_Given_A_NonPrimitive_Id_Type_Throws_Exception() { var orderMap = new DocumentMap<Order>(); orderMap.Id(c => c.Customer); }