public void TestNormalKeyExtract() { //SETUP var options = SqliteInMemory.CreateOptions <TestDbContext>(); using (var context = new TestDbContext(options)) { var decodedEntity = new DecodedEntityClass(typeof(NormalEntity), context); var decodeDto = new DecodedDto(typeof(NormalEntityDto), decodedEntity, new GenericServicesConfig(), null); //ATTEMPT var dto = new NormalEntityDto { Id = 123 }; var keys = context.GetKeysFromDtoInCorrectOrder(dto, decodeDto); //VERIFY ((int)keys[0]).ShouldEqual(123); } }