public void Support_nullable_primary_keys_native_generated() { // arrange var generator = GeneratorMock; // act _persistenceModel.SupportNullablePrimaryKeysNativeGenerated(); ActualIdConventions .ForEach(idconv => idconv.Apply(_mockIdInstance)); // assert generator.AssertWasCalled(g => g.Native()); }
public void Support_nullable_primary_keys_custom() { // arrange Action <IGeneratorInstance> sequenceGenerated = g => g.Sequence("theSequence"); var generator = GeneratorMock; // act _persistenceModel.SupportNullablePrimaryKeys(sequenceGenerated); ActualIdConventions .ForEach(idconv => idconv.Apply(_mockIdInstance)); // assert generator.AssertWasCalled(g => g.Sequence("theSequence")); }